Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

/prog/ - RPG

Name: Anonymous 2010-10-29 15:44

Lets program a roleplaying game together. Each post must contain either a new function or an edited version of an old function in psudocode. I will start:

int dealDamage(int hp, int damage){
    return hp - damage;
}

Name: Anonymous 2010-10-31 20:56

>103
In parameter lists, to differantiate input arguments from output arguments. In the global scope, for static structs or arrays (of structs).

Global integer consts? Not as useful as global defines, except that they can have external linkage, but usually functions handle that. You can take the address of a const global, if that'd ever be necessary.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List