driver.cpp
来自「Hanoi非递归源码」· C++ 代码 · 共 24 行
CPP
24 行
// 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 + =
减小字号Ctrl + -
显示快捷键?