Code::Blocks Forums

User forums => Help => Topic started by: jagdesign@cableone.net on August 06, 2020, 10:15:10 pm

Title: Help with setup to use #include <iosrteam.h>
Post by: jagdesign@cableone.net on August 06, 2020, 10:15:10 pm
Hello, 
I'm just learning C++ and how to use the Code::blocks IDE 64bit v20.3.
C::B is installed and compiles fine on "Hello World".

But I'm using an old a book called "teach yourself C++ in 21 days" it uses #include <iostream.h>  at the top of all the programs shown there. How do I setup C::B to use this vrs. #include <iostream>?  I get an error if I add the "h".

The book says that this may have to use an "include path or environmental variable".  But I can't figure out how to do this.

I think it had more to do with compilers setting than the include path.

Can someone please help ?
Title: Re: Help with setup to use #include <iosrteam.h>
Post by: sodev on August 07, 2020, 12:28:58 am
Drop that book into the next trash bin and get something recent. Or go into a tech musuem, maybe there you can find a computer that runs an ancient c++ compiler that ships with these nonstandard headers.

Really, if you dont know anything about c++ do yourself a favor and learn with recent material. Finally there is some movement and c++ gets updated, a lot of the new features change things drastically in contrast to the past.
Title: Re: Help with setup to use #include <iosrteam.h>
Post by: BlueHazzard on August 07, 2020, 04:29:40 pm
To say it short...
Standard library headers for c++ do not have ".h" anymore. So do not add it in your code....
Title: Re: Help with setup to use #include <iosrteam.h>
Post by: jorgemartin on August 26, 2020, 03:22:02 am
Thank you very much, both of you