请问大神们,错在哪里?
#include <stdio.h>int main();
{
printf("\n\
** *\n\
******* **\n\
*********** ***\n\
*******************\n\
******@************\n\
*******************\n\
*********** ***\n\
******* **\n\
** *\n");
return 0;
}
错误提示:
2 1 D:\D盘\c++\testl 2.cpp stray '\243' in program
2 1 D:\D盘\c++\testl 2.cpp stray '\250' in program
2 1 D:\D盘\c++\testl 2.cpp stray '\243' in program
2 1 D:\D盘\c++\testl 2.cpp stray '\251' in program
4 17 D:\D盘\c++\testl 2.cpp backslash and newline separated by space
9 26 D:\D盘\c++\testl 2.cpp backslash and newline separated by space
12 21 D:\D盘\c++\testl 2.cpp backslash and newline separated by space
12 21 D:\D盘\c++\testl 2.cpp backslash and newline separated by space
3 1 D:\D盘\c++\testl 2.cpp expected unqualified-id before '{' token intmain()后面加个分号是啥意思 int main();
int main()
多了分号和空格 #include<stdio.h>
int main()
{
printf("\n\
** *\n\
******* **\n\
*********** ***\n\
*******************\n\
******@************\n\
*******************\n\
*********** ***\n\
******* **\n\
** *\n");
return 0;
} 直接主函数就结束了,没有了后文... 多谢各位大神
页:
[1]