Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- do
- {
- clrscr(0, 7 + sizetab.at(1) * 2);
- cout << "Enter the coordinates: " << endl;
- setcolor(GREEN, BLACK);
- xcharascii = xintascii + sizetab.at(0) - 1; // Max Column
- ycharascii = yintascii + sizetab.at(1) - 1; // Max Line
- cout << "LINE (A.." << ycharascii << ") ";
- cout << "COLUMN(a.." << xcharascii << ") ";
- cin >> line >> column;
- cin.ignore(1000, '\n');
- pline = int(line) - yintascii; // gets number of line from the char line(A..Z)
- pcolumn = int(column) - xintascii; // gets number of column from the char column (a...Z)
- } while (ChangeShip(board,pline,pcolumn,sfiletab,xcharascii,ycharascii,sizetab,ships)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement