#include
#include
#include
#include
#include
#include
#include
using namespace std;
int main()
{
ifstream in("input.txt");
string s;
char key; //or string key
while(getline(in,s))
{
istringstream sin(s);
cout< while(sin>>key) //or sin>>key; key[0]
{
cout< }
}
char t[100];
gets(t);
cout< s=t;
cout<
FILE *fp=fopen("input.txt","r");
char ln[100];
fgets(ln,100,fp);
while(!feof(fp))
{
printf(ln);
fgets(ln,100,fp);
}
fclose(fp);
return 0;
}
阅读(734) | 评论(0) | 转发(0) |