一个书上的问题有点烦,求大佬解答
# include <stdio.h>
void main ()
{
char name[20]={0};
int i=0;
printf ("请输入学号和姓名:\n");
printf("***您输入的信息如下*********\n");
scanf("%d,%s",&i,name);
printf("学号:%d,姓名:%s\n",i,name);
}
# include <stdio.h>
void main ()
{
char name[20]={0};
int i=0;
printf ("请输入学号和姓名:\n");
printf("***您输入的信息如下*********\n");
scanf("%d,%s",&i,name);
printf("学号:%d,姓名:%s\n",i,name);
}
2019-09-24
举报