Hi guys:)

I have an assignment about making an operand stack using c++ which receives a mathematical expression like ((3+2)*(5+6-2))
and the program gives the solve of that exp.

the problem I have faced is how to change a character to an integer ?
and how I can start?

Recommended Answers

All 3 Replies

Thank you Man!

use the function : isalpha()

Hi guys:)

I have an assignment about making an operand stack using c++ which receives a mathematical expression like ((3+2)*(5+6-2))
and the program gives the solve of that exp.

the problem I have faced is how to change a character to an integer ?
and how I can start?

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.