#include #include #include #include using namespace std; int main() { setlocale(LC_ALL, "RUSSIAN"); //Обьявление матрицы int rows = 5; int cols = 50; int n; string s; ifstream fin("matrix.txt"); ofstream fout("matrix1.txt"); if (!fout.is_open()) { cout << "Ошибка открытия файла!" << endl; } else { cout << "Файл открыт" << endl;} // fin.open(path); if (!fin.is_open()) { cout << "Ошибка открытия файла!" << endl; } else { cout << "Файл открыт" << endl; //fin.seekg(12,ios_base::beg); } const int N = 50; char *S=new char[1000]; //Строка для анализа fin.getline (S,1000); int i = 0; char *token[100]; string p="65"; token[i] = strtok(S,",."); while (token[i]) token[++i] = strtok(NULL,",."); token[i] = 0; /* чтобы не выводить все MAXWORDS */ // for (i = 0; token[i]; i++) printf("\n", i, token[i]); /////////////////////////////// cout << "----------------------------------------- "<>q; cout<<"\n";fout<<"\n"; cout<=p) { cout<>town; for(w=3;w