+ 2
Iostream error
I have installes turbo c++ on my laptop,done some c programming stuff. Now starting c++, but the first program to print hello world, there is showing error 1. unable to open include file upstream 2.declaration syntax error 3.undwfined symbol cout I can't figure out what is the problem. Help me .I novice in programming. Want to learn.Follwing is the program I'm trying to run: #include<iostream> using namespace std; int main () { cout<<"Hello world"; return 0; }
7 Answers
+ 5
You are using turbo c++, which is obsolete (it was last updated before my birth!). So you have to use the obsolete & deprecated <iostream.h> instead of <iostream>.
Also, don't forget to change your compiler.
https://www.sololearn.com/discuss/288609/?ref=app
+ 5
just neglect "using namespace.std"....
it will work
+ 4
Code::Blocks or Bloodshed Dev C++ for Windows; and CppDroid or C4Droid for android.
+ 2
Yes I will not use that anymore. already installed Code::Blocks ,thank you
+ 1
Thank you. So which modern compiler to install?
+ 1
thank you very much.it is very helpful