Author Topic: Help with setup to use #include <iosrteam.h>  (Read 2951 times)

Offline jagdesign@cableone.net

  • Single posting newcomer
  • *
  • Posts: 6
Help with setup to use #include <iosrteam.h>
« 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 ?

Offline sodev

  • Regular
  • ***
  • Posts: 497
Re: Help with setup to use #include <iosrteam.h>
« Reply #1 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.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Help with setup to use #include <iosrteam.h>
« Reply #2 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....

jorgemartin

  • Guest
Re: Help with setup to use #include <iosrteam.h>
« Reply #3 on: August 26, 2020, 03:22:02 am »
Thank you very much, both of you