11-12-2014
|
8 |
The muffin man
Join Date: Sep 2011
Location: Burger Refuge
Posts: 2,262
|
Next step, start parsing strings. Also notice how your code is duplicated for both choice inputs? You should avoid that since as the product grows, future code maintenance efforts become harder as a result. For example, what if you want to change your input source. Please continue posting your code, it's good to see someone making an effort. |
11-13-2014
|
9 | ||
:
Join Date: Jul 2012
Location: Minnesota
Posts: 818
|
I took them out and the program still worked! I thought you had to add the functions on top of the main for some reason.
If you could send me the reference that would be great.
I'll try and keep this updated frequently |
||
11-13-2014
|
10 | |
The muffin man
Join Date: Sep 2011
Location: Burger Refuge
Posts: 2,262
|
For example parsing "1 + 4 - 2". While this can become arguably complicated it can start off quite basic and grow to a great degree depending on the complexity you'd like to achieve, for example implementing brackets. Also I'll give you a hint, using a stack based implementation will probably be the best way to go with this problem. Familiarise yourself with queues, stacks, and other common data structures and have a think about that. |
|
11-24-2014
|
11 | |
:
Join Date: Jul 2012
Location: Minnesota
Posts: 818
|
I felt a bit mischievous today aha. So I made file remover. Using the stealth function to hide the window once executed. It basically just deletes anything I specify before I compile it once the person opens it up. Nothing really useful except to mess with people lol. I'll try to get a mod to rename my thread as well.. PHP Code:
Last edited by Motrox; 11-24-2014 at 12:21 PM.
|
|
11-24-2014
|
12 | |
Registered User
Join Date: Sep 2014
Posts: 3
|
|
|
11-24-2014
|
13 | |
The muffin man
Join Date: Sep 2011
Location: Burger Refuge
Posts: 2,262
|
|
|