Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- #include <iostream>
- using namespace std;
- #include "windows.h"
- void gotoxy(int x, int y)
- {
- COORD c;
- c.X = x - 1;
- c.Y = y - 1;
- SetConsoleCursorPosition (GetStdHandle(STD_OUTPUT_HANDLE), c);
- }
- int main(int argc, char *argv[])
- {
- gotoxy(10,10);
- cout << "sdf";
- int i;
- for(i=15;i<35;i++)
- {
- gotoxy(i,15);
- cout << char(205);
- };
- for(i=15;i<35;i++)
- {
- gotoxy(15,i);
- cout << char(205);
- };
- for(i=15;i<35;i++)
- {
- gotoxy(35,i);
- cout << char(205);
- };
- for(i=15;i<35;i++)
- {
- gotoxy(i,35);
- cout << char(205);
- };
- gotoxy(16,16);
- int a;
- cin >> a;
- system("PAUSE");
- return EXIT_SUCCESS;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement