how can i make toupper global so that all variable in char will be all upper?

Recommended Answers

All 2 Replies

Do you mean the toupper function?

toupper is a built-in function in C++, defined in <cctype>, so it should be accessible throughout the program.
Unless you have named one of your user-created sub-routines "toupper"--which is a really bad idea.

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.