0
Why should I not use #include<stdio.h> #include<conio.h> void main
Please explain it
17 odpowiedzi
+ 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...
+ 3
You may check these for egs :
www.cplusplus.com/forum/windows/1506
https://www.codeproject.com/Articles/14032/Chat-Client-Server
And here is an example of making a chat system using HTML, CSS, JS and PHP
https://code.tutsplus.com/tutorials/how-to-create-a-simple-web-based-chat-application--net-5931
+ 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...
+ 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
+ 2
Welcome 😊
+ 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...
+ 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...
+ 2
@Anubhav
system("cls") for windows,
system("clear") for linux and android...
//Need cstdlib for these...
+ 2
system("cls") works on SoloLearn...
+ 2
cstdlib...
+ 2
Welcome...
+ 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
+ 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
+ 1
My main problem is that when I was using stdio.h and conio.h then error is shown by this application
+ 1
Tysm bhai kinshuk vashisht
+ 1
Give Ur whatsapp no. Bro... I wanna ask lots of questions..... I m a rookie bro
+ 1
What will I have to learn to create messaging app