解题思路:记录做法
注意事项:
参考代码:#include <stdio.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
void GetReal(char b[]){
printf("please input a number:\n");
gets(b);
}
void GetString(char a[]){
printf("please input a string:\n");
gets(a); //可以用gets,提交过了,满分
}
int main(){
char b1[100];
char a1[100];
GetReal(b1);
GetString(a1);
printf("%s\n",b1);
printf("%s\n",a1);
return 0;
}
0.0分
0 人评分
点我有惊喜!你懂得!浏览:1330 |
C语言程序设计教程(第三版)课后习题10.7 (C语言代码)浏览:512 |
C语言程序设计教程(第三版)课后习题11.1 (C语言代码)浏览:663 |
数列排序 (C语言代码)浏览:830 |
2005年春浙江省计算机等级考试二级C 编程题(1) (C语言代码)浏览:582 |
【矩阵】 (C++代码)浏览:947 |
C二级辅导-公约公倍 (C语言代码)浏览:483 |
判定字符位置 (C语言代码)浏览:795 |
A+B for Input-Output Practice (I) (C语言代码)浏览:429 |
C语言程序设计教程(第三版)课后习题8.3 (C语言代码)浏览:528 |