#include <iostream>
using namespace std;
int main()
{ int a; int b; b=1; printf ("234567"); system ("pause"); cin>>a; if(a="1") then printf ("2"); return 0; else while(b>10) { system ("pause"); printf("12345"); }
}
如果是指 语法错误,不需要问题,因为编译器会告诉你。编译你的代码,编译器给出的错误是:
cin>>a; ---'a;' : undeclared identifier
if(a="1") --- cannot convert from 'const char [2]' to 'int'
then --- 'then' : undeclared identifier
else --- illegal else without matching if