Author Topic: Can't seem to find io.h  (Read 2952 times)

Offline Thunderchook

  • Multiple posting newcomer
  • *
  • Posts: 11
Can't seem to find io.h
« on: January 03, 2017, 09:59:44 am »
Hi all,

I am working through C++ All-in-one for Dummies by John Paul Mueller and Jeff Cogswell.
I am near the end where we learn file operations.
The code uses the header file io.h.

I get and error saying "No such file or directory."

Is there an option to enable this (slightly old) header file?
Is there another header file that provides the same functonality?
Can I add them manually?

Thanks.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7590
    • My Best Post
Re: Can't seem to find io.h
« Reply #1 on: January 03, 2017, 05:46:41 pm »
Learn the difference between your compiler and the Code::Blocks IDE.

Then, learn the name of your compiler and find a support site for your compiler.

Please read the rules http://forums.codeblocks.org/index.php/topic,9996.0.html

Edit: Using "io.h" in C++ code, likely means the book is very old or very bad.
Or, maybe both.

Edit2: As a programmer, you need to learn to use Google.
Link to book support website:
http://www.wiley.com/WileyCDA/WileyTitle/productCd-1118823788.html
Download the updated code and find out how they fixed it for real/standard C++ compilers.

Edit3: Looks like they never fixed the code; making this a bad C++ book unless they say why in the textbook.

Tim S.

« Last Edit: January 03, 2017, 06:27:49 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org