解题思路:
注意事项:
参考代码:
#include <iostream>
#include <cstring>
#include<string>
#include<stdio.h>
using namespace std;
int main()
{
int n;
cin>>n;
getchar();
char name[1000];
while(n--)
{
gets(name);
puts(name);
cout<<endl;
}
while(scanf("%s",name)!=EOF)
{
puts(name);
cout<<endl;
}
}
0.0分
0 人评分
C语言程序设计教程(第三版)课后习题5.7 (C语言代码)浏览:677 |
不知道哪里错了浏览:1141 |
C语言考试练习题_一元二次方程 (C语言代码)浏览:734 |
不容易系列2 (C语言代码)浏览:589 |
简单的a+b (C语言代码)浏览:596 |
2003年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码)浏览:581 |
简单的a+b (C语言代码)浏览:572 |
C语言程序设计教程(第三版)课后习题9.4 (C语言代码)浏览:629 |
钟神赛车 (C语言代码)浏览:590 |
简单的a+b (C语言代码)浏览:460 |