Asked by
BinaryData,
By +Red King,
By sweetlife,
By Skwerl · Posted
By Malisk · Posted
By Good Bot, Bad Bot · Posted
By Skwerl · Posted
By MrElectrifyer · Posted
We rely on ads to keep creating quality content for you to enjoy for free.
Please support our site by disabling your ad blocker.
Continue without supporting us
If the prompt is still appearing, please disable any tools or services you are using that block internet ads (e.g. DNS Servers, tracking protection or privacy extensions).
Question
BinaryData
So, I've been working on learning C++, writing simple programs for different tasks, etc.. I've been doing ALL of my programming in the main.cpp, and I've ran into a few issues.
I did a bit of Google Searching, but became incredibly confused.
I have main.cpp, which doesn't require a header file. I know that for every .cpp I have, I need a .h file. So my question is;
Where the heck does my code go? What goes in the .h?
I have;
main.cpp
rename.h
rename.cpp
quality.h
quality.cpp
(I'm breaking my code up to force myself into doing something different..)
I know I'm a scrub, so please keep the trolling and the insults to a minimum. One cannot learn if one is not taught, nor can one learn the proper way, if not shown the right way.
Edit: And my co-worker solved the problem.
http://www.learncpp.com/cpp-tutorial/19-header-files/
Edited by BinaryDataLink to comment
https://www.neowin.net/forum/topic/1266462-c-issues-cpp-h/Share on other sites
3 answers to this question
Recommended Posts