0

Why should I not use #include<stdio.h> #include<conio.h> void main

Please explain it

11th Jun 2017, 6:57 AM
Ashutosh Upadhyay
Ashutosh Upadhyay - avatar
17 Respostas
+ 5
@Ashutosh Upadhyay Yes as conio.h is not there in sololearn's library files... Thus you will have to use cin.get() instead of getch(), etc... Also, stdio.h may work and if it doesn't , try using cstdio instead, like this: #include<cstdio> So, on SoloLearn,you cannot use conio.h as it simply isn't there...
12th Jun 2017, 5:05 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
12th Jun 2017, 5:54 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 3
@Anubhav Pandey But, thanks to SoloLearn's 'wonderful' Interface, Sleep does not do anything here. Rather, the program's output takes more time to load. It is just like inputs...
12th Jun 2017, 6:24 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 2
As they are simply C headers and functions... If you're using C++, why use them? We have better things in C++... //iostream, cin.get(), cout
11th Jun 2017, 12:01 PM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 2
Welcome 😊
12th Jun 2017, 5:37 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 2
Sorry, but I use SoloLearn on a Tablet which does not have a SIM card Slot. So, no whatsapp on this tablet... Ask Your questions here itself, Ill help you... + It may help others with similar questions...
12th Jun 2017, 5:42 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 2
A messaging app? Web languages would be easier to use in this, as C++ can store messages and connect to other programs via the internet, but I don't know how to implement those features... But a chat system may be possible in c++, but one will have to use 3rd party libraries for that... But html, css etc will give you a larger scope for this task, as they have functions to easily handle such things...
12th Jun 2017, 5:47 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 2
@Anubhav system("cls") for windows, system("clear") for linux and android... //Need cstdlib for these...
12th Jun 2017, 6:07 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 2
system("cls") works on SoloLearn...
12th Jun 2017, 6:09 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 2
cstdlib...
12th Jun 2017, 6:15 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 2
Welcome...
12th Jun 2017, 6:15 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 2
Sleep( Time_in_millisecs); In windows.h, works on SoloLearn... If you want a cross-platform alternative: https://code.sololearn.com/cuMz5O5r0P9Q/?ref=app
12th Jun 2017, 6:21 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 1
printf and scanf functions are included in studio.h and getch () is included in conio.h so if u don't use them than compiler will unable to understand the meaning of such function and it will return error
11th Jun 2017, 7:06 AM
Divyank Dixit
Divyank Dixit - avatar
+ 1
My main problem is that when I was using stdio.h and conio.h then error is shown by this application
12th Jun 2017, 4:50 AM
Ashutosh Upadhyay
Ashutosh Upadhyay - avatar
+ 1
Tysm bhai kinshuk vashisht
12th Jun 2017, 5:37 AM
Ashutosh Upadhyay
Ashutosh Upadhyay - avatar
+ 1
Give Ur whatsapp no. Bro... I wanna ask lots of questions..... I m a rookie bro
12th Jun 2017, 5:38 AM
Ashutosh Upadhyay
Ashutosh Upadhyay - avatar
+ 1
What will I have to learn to create messaging app
12th Jun 2017, 5:43 AM
Ashutosh Upadhyay
Ashutosh Upadhyay - avatar