Yes, i've only been messing with C / C++ for around 2 weeks now. Out of fun. I did get familiar with VC++ as my first language, i tried to understand classes and all that as the first thing ! I didn't do too bad with vc++ so C / C++ shouldn't be as hard? Or "at least" not much of a change in the learning curve?
Anyways...
Someone answered a Q for me and i said i got it. I then replied that my source is up to 560 sumin lines and they told me "if that's all in one function you better be splitting it up".
I can understand neatness, and i would like to do that, but how?
#include needed stuff......
int main()
{
message;
return 0;
}
int message()
{
printf("a message!");
or
cout<<a message!");
}
How would i do this type of a thing? I saw some source and someone had loads of functions and in the main function they did just that. message; followed by blah; and stuff; or whatever, and it would then just activate all the code in the stuff function or whichever specified in main...... i can't it get to work.