C++98 字符串遍历输出代码示例 日期: 2026-02-13 标签: 常规 #include \n#include \n\nint main() {\n const std::string input = "123456";\n \n for (std::string::const_iterator it = input.begin(); it != input.end(); ++it) {\n std::cout << *it;\n }\n \n return 0;\n} 原文地址: https://www.cveoy.top/t/topic/p95x 著作权归作者所有。请勿转载和采集! 免费AI点我,无需注册和登录