ok i got it now, so as long as the getpeople() function returns a pointer to the linked list i want then i have what i need.
Thanks for all the help guys
Type: Posts; User: PickleBranston
ok i got it now, so as long as the getpeople() function returns a pointer to the linked list i want then i have what i need.
Thanks for all the help guys
but once that function closes wont all that memory be freed?
Ok so my program is to help solve an issue with a game you can play called the murder game. Usually you need someone to organise it for everyone else, but that obviously means they cannot play, so...
i think maybe i havent clearly explained myself.
I am saying that i DONT want to have a global variable for this structure, as i dont want wasted memory. So my question is do i have to have a...
so how do i make a global linked list then? because any linked list i create inside a function will be freed as soon as the function ends right? and i cant declare it before the main program because...
sorry i dont know how i managed to double post? browser maybe got confused.
I am concerned about making it a global variable since this structure has many different elements, and each time the...
I googled but could not find what i wanted.
basically passing pointers between each function is a bit of a nightmare for one of my linked lists which is being used continually throughout my...
I googled but could not fiund what i wanted.
basically passing pointers between each function is a bit of a nightmare for one of my linked lists which is being used continually throughout my...
Ok cheers all working now!
It would be nicer to have a higher accuracy on time measurements, but as first poster said you would struggle to read, calculate and type answer anywhere near to 1...
right i see, i was looking for a x1 and x2 value, but one you just calculate inside the difftime which is much simpler!
Although I seem to understand it, i cant seem to get it to work!...
sorry, but i cant see when that time starts counting? It cant count from when program starts incase user wants to have more than one go without closing down the program.
Using googled knowledge on...
Hi,
I am writing a program that will ask simple maths questions to build up better mental aritmatic etc.
I need a way of timing how long it takes to answer a set of say 20 questions so that i...