Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <windows.h>
- using namespace std;
- int main()
- {
- int linha = 1;
- int coluna = 1;
- COORD coord;
- int linhaX;
- while (linha <= 19)
- {
- while (coluna <= 19)
- {
- cout << " x ";
- coluna++;
- }
- linha++;
- cout << endl;
- coluna = 1;
- }
- linhaX = 1;
- coord.X = 3 * linhaX;
- coord.Y = 10;
- SetConsoleCursorPosition(
- GetStdHandle( STD_OUTPUT_HANDLE ),
- coord);
- cout << " O ";
- coord.X = 0;
- coord.Y = 19;
- SetConsoleCursorPosition(
- GetStdHandle( STD_OUTPUT_HANDLE ),
- coord);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement