News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Can't seem to find io.h

Started by Thunderchook, January 03, 2017, 09:59:44 AM

Previous topic - Next topic

Thunderchook

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.

stahta01

#1
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.next.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.

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]