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
11 Réponses
+ 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.
+ 4
Most pirated ( or free_to_download ) "C++ compilers" that you find online are actually capable of only following syntaxes of C language.
+ 4
krishna vamsi - well, there are many.
Maybe you could try...
Code::Blocks
https://www.google.co.in/url?sa=t&source=web&rct=j&url=http://www.codeblocks.org/&ved=2ahUKEwiarqLf2v3aAhUPT48KHU7KDCwQFjATegQIBRAD&usg=AOvVaw3hq0EnM9pUmV3VS5ghpxoA
+ 3
krishna vamsi - My pleasure ^_^
+ 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?
+ 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++
+ 2
I think your language is set to c or your ide doesn't support c++
+ 1
Make sure not to create c project if you are using code blocks. Otherwise your problem doesn't make any sense.
+ 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.
+ 1
Rahul George thanx.. u see i'm absolute beginner.. it really helps me
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