scanf、printf && cin、cout

版权声明:叁土 https://blog.csdn.net/qq_42847312/article/details/84961474

scanf是格式化输入,printf是格式化输出 ——> 格式化输出效率比较高,但是写代码麻烦

cin是输入流,cout是输出流流输出 ——> 操作效率稍低,但书写简便

猜你喜欢

转载自blog.csdn.net/qq_42847312/article/details/84961474