0

A program to find distance between two point ❓

https://code.sololearn.com/cwPwnXxzX9au/?ref=app

3rd Oct 2018, 2:21 PM
vinod khorwal
vinod khorwal - avatar
2 Antworten
+ 1
Actually scanf does work in SoloLearn C++. The issue is how the app decides to prompt for input. It can be tricked into working as it wants to see a cin input. Add this line to force the prompt: #define dummy cin >>
3rd Oct 2018, 4:07 PM
John Wells
John Wells - avatar
0
What exactly is your question? If it is why the input doesn't work, that is because the Sololearn C++ compiler doesn't support input via scanf(). Make a C program instead, there it will just work fine.
3rd Oct 2018, 2:37 PM
Shadow
Shadow - avatar