View Full Version : [C++] getch...??
getch() necessita della libreria conio.h... e io lo metto alla fine per non far chiudere la finestrella nera :)
slartibartfast
23-06-2006, 22:37
Dalla guida Borland:
Header File
conio.h
Category
Input/output Routines
Syntax
#include <conio.h>
int getch(void);
Description
Gets character from keyboard, does not echo to screen.
getch reads a single character directly from the keyboard, without echoing to the screen.
Note: Do not use this function for Win32s or Win32 GUI applications.
Return Value
getch returns the character read from the keyboard.
Example:
#include <conio.h>
#include <stdio.h>
int main(void)
{
int c;
int extended = 0;
c = getch();
if (!c)
extended = getch();
if (extended)
printf("The character is extended\n");
else
printf("The character isn't extended\n");
return 0;
}
slartibartfast
24-06-2006, 08:09
Perchè non ti fai delle ricerce con google? Mettendo cin.get() nel campo di ricerca la prima pagina che ti viene fuori ;)
e cin.get() come si usa?
Scusa ma qui devo proprio risponderti male...
Non hai ringraziato slartibartfast che ha cercato per te una cosa che potevi benissimo trovare da solo in google. Sicuramente in molto meno tempo di quello che ci hai messo a scrivere il messaggio e aspettare le risposte... Noi siamo persone, non siamo un motore di ricerca dove chiedi e rispondiamo!
Quindi arrangiati un po' anche tu! :read:
Io questi li chiamo viziati
Grazie
scusa ianaz.
io non uso molto google perche di solito non trova quello che cerco, ma ora vedro di usarlo un po id piu.
vBulletin® v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.