cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
infix to prefix
infix to prefix
Oct 6, 2014 at 8:32pm UTC
andrewthecoder
(26)
how can i turn a infix string input and convert it into prefix? ive read some stuff online and it doesnt really make sense to me. if anyone could explain the method to do it it would be greatly appreciated.
Oct 6, 2014 at 9:29pm UTC
anup30
(968)
swap
Oct 6, 2014 at 9:34pm UTC
andrewthecoder
(26)
@anup30
how do i do a swap?
Oct 6, 2014 at 9:42pm UTC
closed account (
28poGNh0
)
@andrewthecoder
can give us an exemple ?
Oct 6, 2014 at 9:46pm UTC
andrewthecoder
(26)
@techno01
like an input ( A + B ) - C
Oct 6, 2014 at 10:34pm UTC
anup30
(968)
in string manipulation, you can,
GoCarlsenNow --> CarlsenGoNow --> PleaseCarlsenGoNow etc.
Oct 6, 2014 at 10:40pm UTC
anup30
(968)
string s = " ( A + B ) - C";
to interchange B and C, find their position (i,j) with a for loop. then swap s[i] and s[j];
Oct 7, 2014 at 1:18am UTC
closed account (
28poGNh0
)
@andrewthecoder
This is not a good exemple
Topic archived. No new replies allowed.