Posted 21 July 2012 - 01:02 AM
Complete noob question, I know.
And I'm ashamed to be asking it.
I'v just started messing around with cc in the last week, had been experimenting with java previously.
just about got how to make/edit and run simple programs in cc.
Now I want to simplify the code by making abbreviations of existing functions,
and making my own functions, again to complement the existing ones.
so at this point i have 2 questions.
How do I make a function()?
and how do I set up 'global' booleans/ other variables (the way you would in java with public static boolean etc)
If there is an obvious tutorial or a thread out there could someone please post a link.
thanks in advance
-kaj
And I'm ashamed to be asking it.
I'v just started messing around with cc in the last week, had been experimenting with java previously.
just about got how to make/edit and run simple programs in cc.
Now I want to simplify the code by making abbreviations of existing functions,
and making my own functions, again to complement the existing ones.
so at this point i have 2 questions.
How do I make a function()?
and how do I set up 'global' booleans/ other variables (the way you would in java with public static boolean etc)
If there is an obvious tutorial or a thread out there could someone please post a link.
thanks in advance
-kaj