// textfiles.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include #include #include using namespace std; typedef struct { string word; int number; } WORDS; int _tmain(int argc, _TCHAR* argv[]) { //ifstream inp; ofstream out; string filename,word; WORDS temp; list mylist; cout<<"filename"; cin>>filename; ifstream inp=ifstream(filename.c_str()); while(!f.eof()) { inp>>temp.word; //if(word[])определение последнего символа //if(mylist.) mylist.push_back(temp.word); } return 0; }