+ 3

Clrscr() getch()

Why I cant use them in sololearn ...i know if we want to use them we gotcha include #include<Conio> ....i know the use of clrscr it clears the screen before showing the output..but whats the use of getch() and WHY I CANT USE them IN SOLOLEARN

26th Nov 2017, 5:35 AM
I'm_Groot
I'm_Groot - avatar
6 Réponses
+ 4
for using system("cls"); we have to include #include<stdlib.h> it works fine in my pc but i gotta say onething here .."SOLOLEARN SUCKS"here
26th Nov 2017, 7:19 AM
I'm_Groot
I'm_Groot - avatar
+ 4
'cls' is a system command. There is no way an online compiler can offer you a way to use that.
26th Nov 2017, 7:39 AM
Kinshuk Vasisht
Kinshuk Vasisht - avatar
+ 3
is there any function like clrscr()
26th Nov 2017, 5:50 AM
I'm_Groot
I'm_Groot - avatar
+ 3
....Thanks Thanks ....
26th Nov 2017, 7:46 AM
I'm_Groot
I'm_Groot - avatar
+ 2
getch() function waits for you to input a character.
26th Nov 2017, 5:42 AM
jamilxt
jamilxt - avatar
+ 1
if i want to want to read value from user for doing some calculation...cout<<"Enter two number"; I want only my output to get displayed on the screen not with the ..Enter two num....what should i do??
26th Nov 2017, 5:59 AM
I'm_Groot
I'm_Groot - avatar