解题思路:记录做法
注意事项:
参考代码:#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 人评分
C语言训练-斐波纳契数列 (C语言代码)浏览:774 |
程序员的表白 (C语言代码)浏览:1458 |
A+B for Input-Output Practice (C++代码)浏览:605 |
求圆的面积 (C语言代码)浏览:1267 |
P1001 (C语言代码)浏览:800 |
C语言程序设计教程(第三版)课后习题6.6 (C语言代码)浏览:624 |
WU-陶陶摘苹果2 (C++代码)浏览:968 |
C语言程序设计教程(第三版)课后习题9.8 (C语言代码)浏览:664 |
数对 (C语言代码)浏览:697 |
震宇大神的杀毒软件 (C语言代码)浏览:1079 |