#include<stdio.h>
void main()
{
for(int a=1;a<=8;a++)
{
for(int b=8;b>=a;b--)
{
printf{" "};
}
for(int c=1;c<=a*2-1;c++)
{
printf("%c",63+a);
}
printf("\n");
}
}
错误提示:
--------------------Configuration: Cpp1 - Win32 Debug--------------------
Compiling...
Cpp1.cpp
D:\学习\Programming Language C\Cpp1.cpp(8) : error C2143: syntax error : missing ';' before '{'
D:\学习\Programming Language C\Cpp1.cpp(8) : warning C4551: function call missing argument list
D:\学习\Programming Language C\Cpp1.cpp(8) : error C2143: syntax error : missing ';' before '}'
执行 cl.exe 时出错.
Cpp1.obj - 1 error(s), 0 warning(s)
[此贴子已经被作者于2006-4-6 11:22:53编辑过]