cin cout and scanf printf | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

cin cout and scanf printf

im coding on a web these days and i found that sometime the test machine returned false when i used cin cout but correct when it's changed to printf and scanf.

29th Jul 2018, 10:06 AM
DiYiFan
DiYiFan - avatar
3 Answers
+ 3
Share your code or save it in Code Playground so people can see it, until then it's hard to say ...
29th Jul 2018, 12:05 PM
Ipang
+ 1
Printf, Scanf is C. Cout, Cin is C++.
29th Jul 2018, 10:58 AM
Paul Grasser
Paul Grasser - avatar
0
while both methods can be used in c++, the i/o streams are easier to work with imo
29th Jul 2018, 11:48 AM
hinanawi
hinanawi - avatar