i'm after a general theory of how to create one.... more the maths side.
all i can realy tell you at the moment about the game is that its going to be for the windows OS. Im no where near making...
Type: Posts; User: GhOsT_DeStRoYeR
i'm after a general theory of how to create one.... more the maths side.
all i can realy tell you at the moment about the game is that its going to be for the windows OS. Im no where near making...
Im currently making a RPG/Adventure game and i want to make the map of an enitre world.
i need to beable to represent the world in many sub maps (dividing the world into about 200 segments) so...
if your worried about too many if statements and your evaulating integers (even if your not, you can just find a way to use integers, or modify this to work) just create an array of pointers to...
#include "stack.h"
#include "fileio.c"
#include "stack.c"
#include "string.c"
are these files standard?? i dont seem to have them.
i'de question local variables being stored in the stack, but i'm probly wrong.
Dynamic allocation is definately held in the heap, or when the procedure ended, removing all local vars, the dynamic...
i'm assuming that you are talking about the lifetime of the variable
1) Global variables cannot be static, declareing a global variable as static is a self defeating purpose, because you never...
ok, thanks for you help, this is exactly what i'm looking for. i realise that there is no problem with using 1 header file for more than one c file, its just that i find the way i've currently got it...
ok, i apologise if i have been missleading in what i have said.
i'm trying (note the trying) to make a RPG adventure game similar to diablo, arcanum etc, so i want to keep all the code in smallish...
no, i have a header file for each c file. the header files contain the prototypes, extern's and typedefs.
the problem comes when i try to use one typedef in a procedure in a different c file. its...
that is what i want to stop. if you do that then its not realy dividing the code up real well is it?? its just sticking it in one file. i read what codeplug said, but it doesnt suit what i'm after....
ohh, ok
so its imposible to put them in seperate files. realy stops just about all code management....
ok.
given that code, how would you make it possible for mystruct.c to use typedefs in main.c?
Hi
up untill now all the programs i've made are small enough to be writen in one C file.
however, now i need to split the program into smaller parts so that i can actualy understand what is...