关于turboc下的scanf问题

[复制链接]
查看11 | 回复2 | 2007-12-16 13:36:12 | 显示全部楼层 |阅读模式
main(){long a[9][9];int i,j;for(i=0;i<9;i++)for(i=0;i<9;i++) {
printf("Please input:\n");
scanf("%ld",a[j]); }}二楼的朋友真是粗心scanf都写错,C可以在VC上运行。
回复

使用道具 举报

千问 | 2007-12-16 13:36:12 | 显示全部楼层
这样吧:main() { long a[9][9]; int i,j; for(i=0;i<9;i++) for(i=0;i<9;i++) { printf("Please input:\n"); scanf("%ld",&a[j]); } }
回复

使用道具 举报

千问 | 2007-12-16 13:36:12 | 显示全部楼层
long a[9][9];int i,j;for(i=0;i<9;i++)for(j=0;j<9;j++){printf("inputmath.\n");scnaf("%ld",&a[j]);}//你去试试只要是.c .cpp都可以
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行