#include
int prodct(int a,int b)
main()
{
int x,y,p;
int prodct(int a,int b);
scanf(“%x,%y”,&x,&y);
p=prodct(x,y);
printf(“The product is :”,p);
}
int prodct(int a,int b )
{
int c ;
c=a*b;
return c;
}
编译后:
Compiling...
1.cpp
C:\Users\assu\Desktop\1.cpp(3) : error C2146: syntax error : missing ';' before identifier 'main'
C:\Users\assu\Desktop\1.cpp(3) : fatal error C1004: unexpected end of file found
执行 cl.exe 时出错.
1.exe - 1 error(s), 0 warning(s)