c++ - How to write Numbers With Commas?
问题描述
Sometimes in C++ I want to use large number like 1000000 and it's confusing. How can I use commas (if that is possible)?
For example I want this to work
int x = 1,000,000;
解决方案
推荐阅读
- c# - 如何设置 dotnet 日志记录的文化?
- mysql - MYSQL 连接两个表,但用 table2 值填充 table1
- python-3.x - Django没有拿起功能
- jenkins - Jenkins 将环境传递给 pod 模板
- matlab - 为什么matlab不读取命令ReadData3d?
- javascript - 如何从 React ContentEditable 中提取没有 HTML 实体编码的文本?
- r - 如何在 R 中表示高于或低于 SMA 的收盘价?
- image - Flutter:透明的孩子,填充父母的背景颜色
- java - 使用 Appium 在 Android 中访问导航栏
- javascript - history.push 每次都不起作用