Could someone help me, please:

How can I convert a cstring (Input math expression) into an array of integers and characters(*, +, etc.)? I know atoi function would return 0, if there are other characters, not digits.

Is there a function to do it?
I appreciate any help. Thank you.

Look up string parsing.

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.