主题:唉...好多问题啊,我头都大了
在运行下列代码时:"
#include <condefs.h>
#include <stdio.h>
#include <stdlib.h>
#include <iostream.h>
#pragma hdrstop
int main(int argc,char * * argv)
{
cout<<"Hello World!"<<endl;
return 0;
}
"没有出现任何程序运行窗口....
然后是:"
#include <condefs.h>
#include <stdio.h>
#include <stdlib.h>
#include <iostream.h>
#include<conio.h>
#pragma hdrstop
int main(int argc,char * * argv)
{
cout<<"Hello World!"<<endl;
cont<<endl<<"Press any key to continuev...";
getch();
return 0;
}
"在运行时出现这样的错误提示:"[C++ Error] Unit1.cpp(12): E2451 Undefined symbol 'cont'"
光标停留在"cont<<endl<<"Press any key to continuev...";"中的endl前面.但是我打入的代码和书上的一模一样,我不知道什么意思?
#include <condefs.h>
#include <stdio.h>
#include <stdlib.h>
#include <iostream.h>
#pragma hdrstop
int main(int argc,char * * argv)
{
cout<<"Hello World!"<<endl;
return 0;
}
"没有出现任何程序运行窗口....
然后是:"
#include <condefs.h>
#include <stdio.h>
#include <stdlib.h>
#include <iostream.h>
#include<conio.h>
#pragma hdrstop
int main(int argc,char * * argv)
{
cout<<"Hello World!"<<endl;
cont<<endl<<"Press any key to continuev...";
getch();
return 0;
}
"在运行时出现这样的错误提示:"[C++ Error] Unit1.cpp(12): E2451 Undefined symbol 'cont'"
光标停留在"cont<<endl<<"Press any key to continuev...";"中的endl前面.但是我打入的代码和书上的一模一样,我不知道什么意思?