请高手们指点一下!!!!
我编了个小程序!!!
我自己看着没错啊!!!
为什么就是不能运行呢???
帮我看看哪里错了!!!!!!
错误里出现这个提示:d:\新建文件夹\hanoi\han.cpp(26) : fatal error C1010: unexpected end of file while looking for precompiled header directive
#include<iostream>
using namespace std;
long steps;
void move(int n,char A,char B,char C)
{
if(n==1)
{
steps++;
cout<<steps<<":"<<A<<"-->"<<c<<endl;
}
else
{
move(n-1,A,C,B);
move(1,A,B,C);
move(n-1,B,A,c);
}
}
int main()
{
int iNoOfPlate;
cout<<"Enter the number of Plate:";
cin>>iNoOfPlate;
move(iNoOfPlate,'1','2','3');
return 0;
}