Getch() please help | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Getch() please help

#include <iostream> #include <conio.h> using namespace std; int main() { cout <<"hello world!"; getch(); return 0; } Why does the output always prints time limit exceeded?

23rd Dec 2016, 4:11 PM
Nathan
Nathan - avatar
1 Antwort
+ 4
what is ur compiler?? where r u running ur code. getch() waits until u provide a character in input. so might be because u r not entering any character🤔 give me more detail may be i can help
23rd Dec 2016, 4:40 PM
manish rawat
manish rawat - avatar