Sign in to follow this  
trixs

C++ File Structure

Recommended Posts

Hey Everyone, I am attempting to learn C++ and running into a little issue with file structure. I dont want to put all of the code into one file as its really unorganized and hard to see. However, when I do something like the following I recieve errors saying that the file was included elsewhere. Example: main.cpp - has #include test1.cpp and test2.cpp test1.cpp - has #include header.h test2.cpp - this file also needs to use the info from header.h so #include hearer.h header.h - some general info Anyway, the program would need the info from header.h to be available to both test1 and test2. What am I doing wrong lol ;(

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this