level 4
用手机打的不好打,下面是源代码
#include <stdio.h>
int main{
char name[100];//定义姓名字符串
int age;//定义年龄整形
int h;//定义身高
printf("请输入姓名 年龄 身高(空格隔开)\n");
//输入字符串以及后面其他变量应空格或单独输入
scanf("%s %d %d",name,&age,&h);
//字符串不需要地址符,因为本来就是指针类型
printf("我的姓名为:%s 年龄为:%d 身高为:%d\n");
return 0;
}
2025年01月04日 10点01分
