| | |
Parsing Input from Stack
![]() |
•
•
Join Date: Oct 2006
Posts: 17
Reputation:
Solved Threads: 0
I have trying to parse string data in a stack into a arithmetic equivalent. I implemented a stack and used strtok to parse it into tokens and placed them into my stack. Now I am trying to pull them off the stack and do the expression that is carrying them. But I am lost on how to do this. On my Stack I will have ( 2 + 2) + 3 and I can pop them off at a time to get to keep the correct order but I have no idea how to make them into an equation from the stack. Can any body point me to a way to do this? I am not looking for code but some type of explanation on how to create this. I can pull them off the stack and know how to convert the doubles into doubles but how can i assign this into a string for the program to do the math?
Thanks
Thanks
![]() |
Similar Threads
- Push Down Automata (PDA). (Computer Science)
- HW Assignment - Checking Brackets using Stack (C)
- string manipulation (C)
- Working in Visual C++ to parse some text files (C++)
- I created another Stack that tells if word is palindrome, need help (Java)
- MFC File I/O Philosophy questions/clarifications (C++)
Other Threads in the C++ Forum
- Previous Thread: handheld telnet emulation
- Next Thread: Why does this work?
Views: 1193 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for C++
algorithm array arrays assignment basic beginner binary c++ c++borland c/c++ calculator char class classes code command compile compiler console constructor conversion convert count delete dll dynamic encryption error file files form fstream function functions game givemetehcodez graph gui helpwithhomework homework iamthwee ifstream input int integer lazy linker list loop loops math matrix member memory newbie number object objects opengl output parameter pointer pointers problem program programming project python qt random read recursion recursive reference return search simple sort spoonfeeding string strings struct student studio system template templates text time tree variable vc++ vector video visual void win32 window windows winsock






