i have a small doubt | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

i have a small doubt

i have installed c++ in my computer. but when i try to write a program as specified in sololearn app as "#include <iostream>" it is showing error. the c++ program in my computer seems accepting only "#include <stdio.h>" what do i have to do

11th May 2018, 12:11 PM
krishna vamsi
11 Answers
+ 4
as Paul suggested, maybe it's something with the ide you are using. it may support c & c++ but might be set to "c" as default.
11th May 2018, 12:21 PM
storm
storm - avatar
+ 4
Most pirated ( or free_to_download ) "C++ compilers" that you find online are actually capable of only following syntaxes of C language.
11th May 2018, 12:21 PM
Rahul George
Rahul George - avatar
+ 3
krishna vamsi - My pleasure ^_^
11th May 2018, 1:00 PM
Rahul George
Rahul George - avatar
+ 2
there is no such thing as c++ program running your program. I bet you have inatalled some IDE or a compilator. What is that? are you using code::blocks or some other stuff? MVS?
11th May 2018, 12:13 PM
Paul
+ 2
stdio.h is a c library, so your compiler may be really out of date or it can compile only C and not c++
11th May 2018, 12:19 PM
Paul
+ 2
I think your language is set to c or your ide doesn't support c++
18th May 2018, 12:32 PM
Prabodh Panda
Prabodh Panda - avatar
+ 1
Make sure not to create c project if you are using code blocks. Otherwise your problem doesn't make any sense.
11th May 2018, 12:24 PM
Akib
Akib - avatar
+ 1
If you are confused see what's your file extension is in debug folder. .cpp for c ++ .c for c files Otherwise download gnu c/cpp compiler and install it.
11th May 2018, 12:25 PM
Akib
Akib - avatar
+ 1
Rahul George thanx.. u see i'm absolute beginner.. it really helps me
11th May 2018, 12:59 PM
krishna vamsi
0
thanks guys.. i understand the ide i use supports only c files. but tell me which ide do i have to use to run c++ programs
11th May 2018, 12:55 PM
krishna vamsi