vc2013scanf是不是不会在缓存回车n了??下面是代码,希望能得到解答,谢谢!

    科技2022-09-07  130

    #include<stdio.h> #include<stdlib.h> int main() { int **array, row, column; printf(“请输入行数: “); scanf(”%d”, &row); printf(“请输入列数: “); scanf(”%d”, &column); array = (int **)malloc(sizeof(int)*row); int i, j; for (i = 0; i < row; i++) { array[i] = (int *)malloc(sizeof(int)*column); for (j = 0; j < column; j++) { array[i][j] = j; printf("%d",array[i][j]); } putchar(’\n’); } system(“pause”); return 0; }

    Processed: 0.009, SQL: 9