0
"scanf" function problem(c++)
what is wrong with "scanf"? Is this function not working in the compiler "sololearn"? https://code.sololearn.com/c9Pv50SfWuxk/?ref=app
8 Respuestas
+ 2
I know it is not related to your problem.
But you should not use scanf in c++. Use it in C, but not in c++. Use cin instead. Remember that c and c++ are two completely different langages, and that what is correct in C is often a bad practice in c++.
+ 2
thank you for the detailed answer 👍🏼😀
+ 2
with "cin" doesn't work too 🤔
0
for example in this code it doesn't work(but I couldn't apply this function anywhere, so I used "cin"):
https://code.sololearn.com/c9Pv50SfWuxk/?ref=app
0
I think Theophilе is right about c and c ++. Thought that this function can be used in the C ++ language. I'll check it a little later on another compiler