高手帮忙.
为什么这个程序总是不能运行. 我的系统是xp, vc++6.0上编译.
#include<stdio.h> #include<stdlib.h>
void main(){ int **a; int x,y; a=(int **)malloc(sizeof(int)); for(x=0;x<5;x++){ for(y=0;y<5;y++) scanf("%d",&a[x][y]); printf("\n"); } } 每次都有错误报告出现啊.
为什么这个程序总是不能运行. 我的系统是xp, vc++6.0上编译.
#include<stdio.h> #include<stdlib.h>
void main(){ int **a; int x,y; a=(int **)malloc(sizeof(int)); for(x=0;x<5;x++){ for(y=0;y<5;y++) scanf("%d",&a[x][y]); printf("\n"); } } 每次都有错误报告出现啊.
2005-10-02 18:42
2005-10-03 03:33
2005-10-03 18:03
2005-10-04 12:05