@ultrilliam
Ahoy there :)
trying to figure out how to get it from the program to my actual desktop files...
sleepyjess, get what from the program to your actual desktop files?
And is it a C++ script jess?
so what's the issue @sleepyjess ? and @bm717 why are you spamming on sleepyjess's post? don't you know spamming is a bannable offense?
Sorry about this jess x'D
all good lol
it does what I want it to do, just wondering if there's a more "efficient" way to do it
looks pretty clean for C++ to me. Frankly C++ tends to have a lot of lines for stuff like that, not much you can do about it
Professor said we could do something like this: double root = sqrt(discriminant);
one small thing you might want to do is explicitly cast the ints into doubles since otherwise the conversion is implicit
Hmmm... *opens notepad++ real quick*
*cause my visual studio installation is broken*
If I did the \( double~root = sqrt(discriminant)\), where would I put that in the code?
first if statement, but frankly i don't think it's necessary
you would need it in the second if statement too, so honestly i think your code is the cleanest
Okay, appreciate the help. First week in a coding class, so just trying to make sure I have the hang of everything
you're doing well!
I would make a change though, ```cplusplus int a, b, c; double solution1, solution2, discriminant; ```
gotcha, didn't realize I could do that
Join our real-time social learning platform and learn together with your friends!