Need help in "using namesapce std"

Hello i have done C++ in my Institute in 3rd semester.. I got little of it.. However, now i am trying to master it..When i put "Using namespace std" like the Textbook.. i got error.. Even when i used #include<iostream> and #include<vector> ..But it shows no error when i use .h but my book shows no .h.

why so?

N.B. I am using Turbo C++ v4.5
Last edited on
closed account (NyqLy60M)
You need to show off what code is giving you trouble if you want help with it, otherwise we're just taking shots in the dark.

C++ is extremely case-sensitive, but that might not be your problem.
Last edited on
Turbo C++ is very old. You must use a newer C++ compiler/IDE.

There is Visual Studio Express, which may be a bit heavy if your computer isn't strong:
http://www.visualstudio.com/en-us/products/visual-studio-express-vs.aspx

There is Orwell Dev-C++:
http://sourceforge.net/projects/orwelldevcpp/

And finally a text editor & command line compiler combo:
http://www.sublimetext.com/
http://www.pnotepad.org/
http://nuwen.net/mingw.html
You are using a very old compiler that was released even before the first C++ standard was released.
ohhhhhhhhh I see.. OK I will try iit..But we are taught with this.. but when i use <iostream> it is not working. but when i put <iostream.h> it works..Even in my complier the <vector.h> not working as well..

Thanks
Your compiler is old. The header names ending with a .h extension have been deprecated since 1998.
The current header names of C++ are iostream, vector, cstdlib etc. instead of iostream.h, vector.h, stdlib.h.

http://en.cppreference.com/w/cpp/header

Update the compiler!
thanks.. i have downloaded Dev C++
engr wrote:
thanks.. i have downloaded Dev C++
Please read:
http://www.cplusplus.com/articles/36vU7k9E/
L B Please read:
http://www.cplusplus.com/articles/36vU7k9E/


ohhhhhhhhhh.. which one is better???
The important thing is to make sure you have the Orwell version, as stated by Catfish666 above.
That article refers to the Bloodshed Dev-C++ (the old one).
I gave you the link to the new, Orwell Dev-C++, so if you downloaded that you are fine.
yes i have downloaded it..

thanks.. i have been using turbo C++ since my 3rd semester lol

Never heard of any of them.. But I saw our junior batches are using Code Block. and some use MASM I think
Yes, my intent was just to make sure he got the correct Dev-C++ version - sorry for any confusion.
i have downloaded Orwell Dev.. but it is showing Bloodshed dev..why so?
When you go to Help -> About, what does it say? Can you screenshot it and paste it to imgur?
I just installed Orwell Dev-C++. It says "Bloodshed Dev-C++" in the Start Menu.

Edit: @ engr: you can safely ignore that.

Basically the Orwell version is an unofficial continuation of the Bloodshed version. Perhaps the author is trying to make it official?
Last edited on
OK i will send .. but it is caching files now


OK catfish.. :D

Good night...midnight here..
Topic archived. No new replies allowed.