hi dear,
you can use a stack to get the user to enter the entire string as a character type in infix notation with parenythesis & then solce the entire string using push & pop functions of the stack according to their precedence

this is only a suggesition.
sk_agarwals