Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string srow;
- string scolumn;
- int row = 0;
- int column = 0;
- string gametype;
- ifstream myReadFile;
- myReadFile.open("text.txt");
- if (myReadFile.is_open())
- {
- getline(myReadFile, gametype);
- getline(myReadFile, srow);
- getline(myReadFile, scolumn);
- row = stoi(srow);
- column = stoi(scolumn);
- for (i = 0; i <row; i++)
- {
- for (j = 0; j <column; j++)
- {
- myReadFile.get(ch);
- printf("%c",ch);
- }
- }
- }
- myReadFile.close();
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement