最后结尾分号结尾了 这是怎么回事?
#include <stdio.h>int main()
{
int i, j, k;
printf("\n"); /*三重循环*/
for("i = 1;i<5;i++");
for("j = 2;j<5;j++");
for ("k = 3;k<5;k++");
{ /*确保 i,j, k各不相同*/
if (i!=k&&i!=j&&j!=k)
printf("%d,%d,%d\n", i, j, k);
}
}
--------------------Configuration: huiyi - Win32 Debug--------------------
Compiling...
huiyi.c
F:\Microsoft Visual Studio\MyProjects\huiyi\huiyi.c(7) : error C2143: syntax error : missing ';' before ')'
F:\Microsoft Visual Studio\MyProjects\huiyi\huiyi.c(7) : error C2143: syntax error : missing ';' before ')'
F:\Microsoft Visual Studio\MyProjects\huiyi\huiyi.c(8) : error C2143: syntax error : missing ';' before ')'
F:\Microsoft Visual Studio\MyProjects\huiyi\huiyi.c(8) : error C2143: syntax error : missing ';' before ')'
F:\Microsoft Visual Studio\MyProjects\huiyi\huiyi.c(9) : error C2143: syntax error : missing ';' before ')'
F:\Microsoft Visual Studio\MyProjects\huiyi\huiyi.c(9) : error C2143: syntax error : missing ';' before ')'
执行 cl.exe 时出错.
huiyi.exe - 1 error(s), 0 warning(s)