+ 1
Hllo everyone,, m new hu es app me to koi mujhe sekhaiga kya esme c++ me kaisa experr hona h,,, m bca 1st year ka student Hu
vha to allag se word use hote h jaisa ki cout ki jagh pr print f or iostream ki jgh pr stdio.h or conuo.h etc,,, ye kuch smj hi nii aa rha,,, help me,,!!!
5 Answers
+ 21
In addition to GAWEN
An extra Note :
conio.h doesn't belong to c standard nor it is defined by POSIX , it is mostly used by MS-DOS compilers ... so use of conio.h is deprecated...
+ 7
printf and scanf is used in C language it is library functions or stream files which read the input and give the output as console
Conio.h is turboc library which is useful only in turboc it indicates console input output
here are C languages course you can start learning here
https://www.sololearn.com/learn/1344/?ref=app
iostream and cout is in C++ language which is worked same as scanf and printf to read the content and print it at the output screen
https://www.sololearn.com/Course/CPlusPlus/?ref=app
+ 6
conio.h is not useful here
if you want to make C++ code then you have to include the library functions of C++ which means you have to include iostream and cout cin and other functions like this
#include<iostream>
int main (){
std :: cout<<"hello"<<end;
return 0;
}
+ 1
yes sir i agree with you that these are using for same work in c,, bt in this application why we can't put print f or conio.h at place of iostream and cout
+ 1
We can use printf and scanf in C++ too
but why u want to use them in C+ if u have cout and cin which are way more better than that of printf and scanf.