i am inputting numbers as characters, then i need to change to their numeric value then add

With single digits all you need to do is subtract the character '0' from the value. For mutidigit numbers you need to perform a conversion, and the easiest way to do so is with strtol (in <stdlib.h> for C or <cstdlib> for C++), sscanf (recommended only for C), stringstream (for C++), or anything similar. Can you be more specific as to what these "numbers" are that you're converting and whether this is C or C++?

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.