Connecting 3 .cpp in one.
| walaskey (7) | |||
| I need an example of what to do when I am trying to connect three .cpp into one. I have read everything and I am confused. example code would be great! What I have is a generic .cpp that contains common data, then one .cpp the allows user to enter in information, and the third all choices have been preselected. I can not figure out how to pull those functions from each of the .cpp and display the data on the third? Please HELP! Thanks in advance! | |||
| helios (1520) | |||
| Declare every function that's needed in a different .cpp in a .h header. Include these headers in every .cpp that needs the functions contained in them (to include headers specific to a project use #include "", which will include files in the the current directory). If you're using an IDE, create a new project and add every file to it. If you're using something like the GNU building environment directly (which I doubt you are) there's an entirely different process I must admit not to know. That should be about it. | |||
| Duoas (1595) | |||
| The process from the prompt is identical except you just add the extra names to the compile command. :-) It doesn't look like it at first, but this thread has all kinds of answers about this stuff. http://www.cplusplus.com/forum/beginner/3108/ Have fun! | |||
| walaskey (7) | |||
| AWESOME!! THANKS!!!! | |||
This topic is archived - New replies not allowed.
