G
da, hoffe du meintest sowas:
#include <iostream>
#include <conio.h>
#include <windows.h>
using namespace std;
void gotoxy(int x, int y) {
HANDLE hStdout;
COORD coordScreen = { 0, 0 };
hStdout = GetStdHandle(STD_OUTPUT_HANDLE);
coordScreen.X = x;
coordScreen.Y = y;
SetConsoleCursorPosition( hStdout, coordScreen );
}
int main()
{
gotoxy(25, 5);
for (int i=0; i<=20; i++)
{
cout << char(196);
}
gotoxy(25, 15);
for (int i=0; i<=20; i++)
{
cout << char(196);
}
for (int i=5; i<=15; i++)
{
gotoxy(25, i);
cout << char(179);
}
for (int i=5; i<=15; i++)
{
gotoxy(45, i);
cout << char(179);
}
gotoxy(45, 15);
cout << char(217);
gotoxy(45, 5);
cout << char(191);
gotoxy(25, 5);
cout << char(218);
gotoxy(25, 15);
cout << char(192);
gotoxy(26, 10);
cout << "Das steht im Rahmen" << endl;
getch();
return 0;
}
mfg