Here, read this, it's great stuff.
http://www.cplusplus.com/doc/tutorial/functions.html
and
http://www.cplusplus.com/doc/tutorial/functions2.html
And, no...
You can't put functions in a function. (void DarkGDK(void) is a function)
Here's a DarkGDK example.
#include "DarkGDK.h"
void WriteScore(int Score); // Declares the function. 'Void' is the return type (it means it returns nothing), and 'WriteScore' is the function name
// with a list of parameters that you need to pass to it. Declaring a function is important so the compiler knows what you are talking about when you
// call the function.
void DarkGDK(void)
{
dbSyncOn();
dbSyncRate(60);
int score = 2405;
while(LoopGDK())
{
WriteScore(score); // Calling the function and passing the value of 'score'
dbSync();
}
return;
}
void WriteScore(int Score) // This is the actual function
{
dbText(0, 0, dbStr(Score)); // Writes the value of 'Score'
return; // Does not need to be called, because the function returns nothing, but you can call it.
}
I'd really read the tutorials at
http://www.cplusplus.com/doc/tutorial/ because they are great tutorials and you can learn a lot from them if you don't know how to do something.
EDIT: Sorry about that AndrewT, you were only about 20 seconds after!
#ifdef _DEBUG
FixBugs(All);
#endif