Tips to remind for the FUTURE.
int **a; int i,m,n; scanf("%d %d",&m,&n); *a=(int **)malloc(m*sizepf(int *)); for (i=0;i<m;i++) a[i]=(int *)malloc(n*sizeof(int));
//which is just like in C++: int m,n; int a[m][n]; cin>>m>>n;
No comments:
Post a Comment