arrays of char

hi,this is my first appearance in forums in English, why I need your help to explain me and fine the solution of this exercice.

Writing a function that has a string parameters and an integer e . This function returns a Boolean. The function returns true if the string is an integer written as a sequence of numbers that do not begin with 0, it returns false otherwise. If the chain is correct, the function returns the value of e in this world.
Last edited on
We can't solve your homework. That's simply against the rules of the forum.

Anyhow, I can give you some hints. Use this function:

http://www.cplusplus.com/reference/clibrary/cctype/isdigit/

and if you want compare simple c-strings of type char*, use the function:

http://www.cplusplus.com/reference/clibrary/cstring/strcmp/

Show us a first try, and we'll help you with pleasure :)
Topic archived. No new replies allowed.