Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Cursor in C/C++ frei positionieren

Empfohlene Antworten

Hallo Leutz,

kann mir wer mitteilen, ob bzw. wie man in C/C++ den Cursor auf dem Bildschirm frei positionieren kann??

Dange

Thias

Wenn du im Shell bist geht es mit:


#include <conio.h>

int PosX;

int PosY;


void main(void) {

  PosX= 10;

  PosY= 1;


  gotoxy(PosX, PosY);

}

Sollte eigentlich mit allen Compileren funktionieren... außer mit Visual C++. Warum? Weil man damit keine 16-Bit Anwendungen mehr schreiben kann und aus einer 32-Bit Anwendung würde ein gotoxy() nur einen Fehler erzeugen (da Bios-Routine). Deshalb haben die von MS es gar nicht erst implementiert.

Gruß,

StarLord

dange... (O:

aber ich hab nur MS V C++ ... *heul*

(O:

Hi,

die conio ist nicht ANSI-C konform.

Das Problem ist, dass C keinen Bildschirm kennt und

du also auch keinen cursor auf dem Bildschirm positionieren

kannst....

gruß Frosch03

in Visual C/C++ kannst du SetConsoleCursorPosition benutzen.

Hi,

das gehört jetzt aber ganz sicher mehr nach:

C++: Compiler, IDEs, APIs

als hier rein .....

gruß Frosch03

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.