C语言怎样输入多个的多维矩阵,不知到有多少个矩阵答:方法很多:我这里直接用动态数组演示。矩阵维度该常量就行了。include <stdio.h>#include <malloc.h>#define row 2 //矩阵行数#define col 3 //矩阵列数int main(){ int ***a=NULL,**b=NULL,*c=NULL,*p=NULL,n,i,j,k; printf("输入要创建的二维矩阵(%dX%d)个数:",row,col...
用scanf()如何正确输入多个字符型数据,有哪些方法?答://#include "stdafx.h"//If the vc++6.0, with this line.#include "stdio.h"int main(void){ char a,b,c,d,e,f; scanf(" %c %c %c %c %c %c",&a,&b,&c,&d,&e,&f);//每个%前有个空格 printf("%c %c %c %c %c %c\n",a,b,c,d,e,f); re...