I just happened to be scrolling through my repls and happened to see this repl that I worked on for a while when I was just learning C++. I cleaned it up a bit and decided it was something worthy of sharing.
- Basic Operations
- Temp Conversion
How to use:
- Start the repl
- Enter the corresponding number to the desired operation
- Enter the first number
- Enter the second number (if appliable)
- Enjoy the result!
Please give feedback and as always, enjoy!
Thanks in advance!
Edit: I know that the code is messy and just bad. I wrote this like 2 years ago!
@DavidShen2 Good, don't do it. The problems arise when there's a standard library thing, say "std::string", and then you define a type called 'string'. Since "std::string" is actually "string" now, you have a name conflict (multiple definitions of the same thing), but you wouldn't expect that since it's actually "std::string".
@EpicGamer007 1 word: reeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee :D
lol what does this line do?
std::string operation; //Copyright © 2019 David Shen
how can you copyright a variable?
Also might want to use
\n instead of
endl since it's faster. but cool!