Code::Blocks Forums

User forums => Help => Topic started by: Thunderchook on January 03, 2017, 09:59:44 am

Title: Can't seem to find io.h
Post by: Thunderchook 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.
Title: Re: Can't seem to find io.h
Post by: stahta01 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 (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 (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.