DEV Community

Discussion on: need help with c++ calculator

Collapse
 
larssonted profile image
Ted Larsson • Edited

so i had an idea how to create this using while and if loops and switch and so and started working on that, got that working and was pretty happy with the result. then i reached out to the techer and asked if i was on the right track. well i was not, i need to make this calculator using string. they should be able to write the formula and then get the calculated answer. ex: 10+10-5(7*8).

now i havent used string and vectors in the other assignmenst and iv'e spent countless hours reading and watching youtube lessons on string. the problem is most of the tutorials i find arent advanced enough, they are only using at most 2 numbers and 1 operator and no (). Now this is programming 1, a introduction course, and this seems to be way more advanced than i thought so i think i need more than a little help here :P does anybody know where i can find a tutorial or something that explains this so that a beginner understands this? i want to learn this really badly and it feels like i almost do i just need something that makes my brain go aha thats how it works!