📄 driver.cpp
字号:
// Hanoi.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include ".\hanoi.h"
int _tmain(int argc, _TCHAR* argv[])
{
char ch='c';
int num;
while(ch!='a')
{
cout<<"Put in a integer:"<<endl;
cin>>num;
Hanoi hanoi;
hanoi.PrintPath(num);
cout<<"press 'a' to quit,other key to continue."<<endl;
cin>>ch;
}
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -