BlockLune / blocklune.github.io

My blog powered by Hexo.
https://fishg.top/
4 stars 0 forks source link

C++ 中 cin 与 cout 的转进制输入输出 | Fish Pond #70

Open BlockLune opened 5 months ago

BlockLune commented 5 months ago

https://fishg.top/posts/9e863176.html

笔者的朋友有道输入八进制输出十进制的题目,他是使用数学方法实现的。笔者隐隐约约记得好像 cin 和 cout 有控制输入输出数字进制的方法,查找了一些资料,做一下笔记。