yeah, so I got that, but now I find that getting input is actually more difficult...
I dont think a simple cin.getline can hold 3 separate values like I need it to (at least in its current state)...
before I get to parsing the operators, is there any way I can get user input into an array?
I mean, this is more of a UI project, and I want the user to type everything into one line, and then the computer take that line, split it into 3 values, and parse those values.
I realize this is a very difficult task, but Im learning a lot from it and thats a good thing...
right now Im simply trying to get something like
1 2 3 4 5
|
char input[128]
/*
then to get input on each element of the array -- instead of just getting one char value I want it to have the same effect as me assigning it
*/
char input[128] = {"16", '+', "32"} //in the code or something else along those lines then parse it so its in a recognisable form
| |
is this even possible? right now I feel its way above my head, and it probably is... is it worth the educational value to struggle on and push onward?
I mean I wanna get this stuff down as best as possible, I wanna apply as a computer science major in college/uni next year, and I wanna really have a handle on it before they even begin teaching it in class...