Iostream error | Sololearn: Learn to code for FREE!


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


11/23/2017 5:55:38 PM

Tapan Das

7 Answers

New Answer


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.


just neglect "using namespace.std".... it will work


Code::Blocks or Bloodshed Dev C++ for Windows; and CppDroid or C4Droid for android.


Yes I will not use that anymore. already installed Code::Blocks ,thank you


Thank you. So which modern compiler to install?


thank you very is very helpful