+ 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; }

23rd Nov 2017, 5:55 PM
Tapan Das
Tapan Das - avatar
7 Antworten
+ 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
23rd Nov 2017, 6:02 PM
DAB
DAB - avatar
+ 5
just neglect "using namespace.std".... it will work
23rd Nov 2017, 6:56 PM
SAKSHI
SAKSHI - avatar
+ 4
Code::Blocks or Bloodshed Dev C++ for Windows; and CppDroid or C4Droid for android.
23rd Nov 2017, 6:07 PM
DAB
DAB - avatar
+ 2
Yes I will not use that anymore. already installed Code::Blocks ,thank you
23rd Nov 2017, 6:22 PM
Tapan Das
Tapan Das - avatar
+ 1
Thank you. So which modern compiler to install?
23rd Nov 2017, 6:03 PM
Tapan Das
Tapan Das - avatar
+ 1
thank you very much.it is very helpful
23rd Nov 2017, 6:10 PM
Tapan Das
Tapan Das - avatar