#include void main() { char diamond[][5]={{'','','*'},{'','*','','*'},{'*','','','*'},{''编译调试通不过 为什么阿?--------------------配置:mingw5 - CUI Debug,编译器类型:MinGW--------------------检查文件依赖性...正在编译 D:
来源:学生作业帮助网 编辑:作业帮 时间:2024/12/02 04:02:24
#include void main() { char diamond[][5]={{'','','*'},{'','*','','*'},{'*','','','*'},{''编译调试通不过 为什么阿?--------------------配置:mingw5 - CUI Debug,编译器类型:MinGW--------------------检查文件依赖性...正在编译 D:
#include void main() { char diamond[][5]={{'','','*'},{'','*','','*'},{'*','','','*'},{''
编译调试通不过 为什么阿?
--------------------配置:mingw5 - CUI Debug,编译器类型:MinGW--------------------
检查文件依赖性...
正在编译 D:\用户目录\Documents\C-Free\Projects\lx\main.c...
[Error] D:\用户目录\Documents\C-Free\Projects\lx\main.c:4:22:empty character constant
[Error] D:\用户目录\Documents\C-Free\Projects\lx\main.c:4:25:empty character constant
[Error] D:\用户目录\Documents\C-Free\Projects\lx\main.c:4:34:empty character constant
[Error] D:\用户目录\Documents\C-Free\Projects\lx\main.c:4:41:empty character constant
[Error] D:\用户目录\Documents\C-Free\Projects\lx\main.c:4:54:empty character constant
[Error] D:\用户目录\Documents\C-Free\Projects\lx\main.c:4:57:empty character constant
[Error] D:\用户目录\Documents\C-Free\Projects\lx\main.c:4:66:empty character constant
[Error] D:\用户目录\Documents\C-Free\Projects\lx\main.c:4:73:empty character constant
[Error] D:\用户目录\Documents\C-Free\Projects\lx\main.c:4:82:empty character constant
[Error] D:\用户目录\Documents\C-Free\Projects\lx\main.c:4:85:empty character constant
[Warning] D:\用户目录\Documents\C-Free\Projects\lx\main.c:3:warning:return type of 'main' is not `int'
[Warning] D:\用户目录\Documents\C-Free\Projects\lx\main.c:12:2:warning:no newline at end of file
构建中止 main:10 个错误,2 个警告
#include
void main()
{
char diamond[][5]={{'','','*'},{'','*','','*'},{'*','','','*'},{'','*','','*'},{'','','*'}};
int i,j;
for (i=0;i
#include void main() { char diamond[][5]={{'','','*'},{'','*','','*'},{'*','','','*'},{''编译调试通不过 为什么阿?--------------------配置:mingw5 - CUI Debug,编译器类型:MinGW--------------------检查文件依赖性...正在编译 D:
/*那是因为在单引号里未键入空格,真是的,修改如下*/
#include
int main(void)
{
char diamond[][5]={{' ',' ','*'},{' ','*',' ','*'},{'*',' ',' ',' ','*'},{' ','*',' ','*'},{' ',' ','*'}};
int i,j;
for (i=0;i