代码没错,为什么编辑器老是提错
#include <iostream>using namespace std;
int max (int i,int j)
{
if(i>=j)
return i;
else return j;
}
int main ()
{
cout << "输入 i,j:";
int i,j;
cin>>i>>j;
cout << "最大数是:" << max(i,j) <<endl;
system("pause")
}
C:\Documents and Settings\Administrator\桌面\include\iostream.cpp(16) : error C2143: syntax error : missing ';' before '}'