#why isnt it displaying everything

15 messages · Page 1 of 1 (latest)

stark shuttle
raven iglooBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

slim knoll
#

numOfGames is passed by value which is most likely your issue. did you learn about pointers yet?

#

the function should modify the variable so you need to pass a pointer if you expect the changes to be seen outside your function

slim knoll
#
void foo(int *bar);

this function takes a int pointer

#

you will need to learn what pointers are to continue

stark shuttle
#

cause i have another code

#

but i realize i cant use global variables

#

and the only way is to add pointers then??

slim knoll
#

your assignment is designed to teach you to use pointers yes probably that is why you cant use globals

#

but yes you must use a pointer for this task

raven iglooBOT
#

This question thread is being automatically closed. If your question is not answered feel free to bump the post or re-ask. Take a look at !howto ask for tips on improving your question.