#C++ Basic calculator
47 messages · Page 1 of 1 (latest)
ok
wdym
@obsidian copper
there
alright
my issue is right here with my else
every time i try build it says i need a ; at the end of the else(option == 2)
like this
i thought u didnt need a ; at the end and only the {}
yeah but else isn't a conditional like if
it may help to visualize it like ```cpp
if (/* ... /) {
// something
} else {
if (/ ... */) {
// something else
}
}
there aren't enough c++ posts here
lol
hey btw is there a way to add multiple characters to char?
ik its only one but i was told u could do more?
like i need to do 2 "-" but char is only one character so
yeah you can't
oh
must be a string, and you can't switch with those :(
if else ig
C++ Basic calculator