来C语言高手看看

[复制链接]
查看11 | 回复2 | 2009-5-7 16:11:49 | 显示全部楼层 |阅读模式
#include
main()
{int i,j;
for(i=1;itcc.exe -epractice.exe -IINCLUDE -LLIB turboc.c .\LIB\ExtGraph.lib

Invalid keyboard code specified
Turbo CVersion 2.0Copyright (c) 1987, 1988 Borland International
turboc.c:
Error turboc.c 9: Expression syntax in function main
Warning turboc.c 9: Code has no effect in function main
Warning turboc.c 9: Code has no effect in function main
Error turboc.c 9: Statement missing ; in function main
*** 2 errors in Compile ***
Available memory 397684
这是返回信息!

回复

使用道具 举报

千问 | 2009-5-7 16:11:49 | 显示全部楼层
#includemain() { int i,j; for(i=1;i<10;i++) printf("%4d",i); printf("\n----------------\n"); for(i=1;i<10;i++) for(j=1;j<10;j++) printf((j==9)?"%4d\n":"%4d",i*j); } 已经能够正确运行printf((j==9)?"%4d\n";"%4d",i*j); 改为printf((j==9)?"%4d\n":"%4d",i*j);...
回复

使用道具 举报

千问 | 2009-5-7 16:11:49 | 显示全部楼层
定义三个变量试试 别只有ij了 再多加一个 三个for语句一个用一个变量...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行