Im unsure if this is possible as I am very new to C++, and have seen many programmers specifically instructing others not to solely use one cpp file and a few headers.
My question is how can I start/go onto a c++ file from within another? Its hard to explain perhaps this pseudo-code is more understandable?
//Within say main.cpp
int main()
{
StartProgram(); //Uses a series of commands to run 'StartProgram' like StartProgram();
}
//Within StartProgram()
int maintwo()
{
//Unimportant commands
}
I know this is possible with header files but it seems to throw up errors due to already initialized commands.
Thanks in advance!