I’m interested in creating another .cpp file to my drivecode into so all I do is call it in the main.cpp for better organization. Is there a way to do this? How would I set it up?
Here are some resources. Basically you create a new file and create your functions. Then you make function prototypes at the top of the file you need to use them or in a include file.
https://www.learncpp.com/cpp-tutorial/programs-with-multiple-code-files/
https://www.learncpp.com/cpp-tutorial/header-files/
https://www.learncpp.com/cpp-tutorial/header-guards/
3 Likes