const stdstring input = 123456 要遍历出input 使用c++98实现给出实现代码
以下是使用C++98实现遍历输出字符串的代码:
#include
int main() { const std::string input = "123456";
for (std::string::const_iterator it = input.begin(); it != input.end(); ++it) {
std::cout << *it;
}
return 0;
}
原文地址: http://www.cveoy.top/t/topic/isvl 著作权归作者所有。请勿转载和采集!