The title says it all.

No, it doesn't.

We need more details to help you.

Like for a game that is text-based. Would I use the

global 

function, or something else?

You would use global variables only when forced to. If your code is not OO, the general way is to pass variables as parameters to the functions. For OO you would change the object's attribute's values instead of returning value.

Also, how would I add to the number global represents

hello,
welcome to this forum site.It is the best site for your queries,here you can get lots of information about various thing.I have read this question but i am note able to give your answer right now,sorry for that.So i am giving you this expert link for your queries.

thanks.

WATER FILTER REVIEWS AND INFORMATION

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.