Why can't I get a user to be able to input 1 or 2 to select which function to use via class and object? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why can't I get a user to be able to input 1 or 2 to select which function to use via class and object?

when you select either 1 or 2, it doesn't prompt you to input another number (the radius) to find the area or perimeter or a circle. it just spit out a number for you. Am I missing some code somewhere. keep in mind I'm still learning via solo learn, a c++ app and some YouTube. only at this for a couple weeks now. https://code.sololearn.com/cNcZ3vCg3f2x/?ref=app

19th Oct 2017, 3:01 AM
Patrick
2 Answers
+ 1
SoloLearn playground limitations. This code works fine on a normal computer. SoloLearn's playground can only execute non-web codes in batch mode — you give it all the inputs, it gives you all the outputs. No interactive behaviour is possible here.
19th Oct 2017, 3:13 AM
deFault
0
So my code was right?! heck yes!
19th Oct 2017, 3:16 AM
Patrick