myGully.com Boerse.SH - BOERSE.AM - BOERSE.IO - BOERSE.IM Boerse.BZ .TO Nachfolger
Zurück   myGully.com > Computer & Technik > Programmierung
Seite neu laden

Programmieren spanneder gestalten?

Willkommen

myGully

Links

Forum

 
Antwort
 
Themen-Optionen Ansicht
Ungelesen 01.11.09, 19:30   #1
Dennka
Hat eine Nase
 
Registriert seit: Oct 2008
Beiträge: 314
Bedankt: 115
Dennka ist noch neu hier! | 0 Respekt Punkte
Standard

Den Inhalt des Links kenn ich schon, nur leider werde ich daraus nicht schlau

Ich hab versucht das
Code:
#include "windows.h"
bool checkConsoleBounds (int x, int y) {
	if  (x < 0 || y < 0) {
		return false;
	}
	CONSOLE_SCREEN_BUFFER_INFO p;
	GetConsoleScreenBufferInfo (GetStdHandle(STD_OUTPUT_HANDLE), &p);
    SMALL_RECT r = p.srWindow; 
	return (x <= r.Right && y <= r.Bottom);
}
void gotoXY(int x, int y) {
	if (checkConsoleBounds (x, y)) {
		HANDLE hStdout; 
		
		hStdout = GetStdHandle(STD_OUTPUT_HANDLE);
		COORD coordScreen = { x, y }; 
		SetConsoleCursorPosition( hStdout, coordScreen );
	}
}
ind eine eigene Header Datei zu machen, der nimmt dann gotoxy nicht an
Dennka ist offline   Mit Zitat antworten
Antwort


Forumregeln
Du kannst keine neue Themen eröffnen
Du kannst keine Antworten verfassen
Du kannst keine Anhänge posten
Du kannst nicht deine Beiträge editieren

BB code is An
Smileys sind An.
[IMG] Code ist An.
HTML-Code ist Aus.

Gehe zu


Alle Zeitangaben in WEZ +1. Es ist jetzt 20:14 Uhr.


Sitemap

().