📅  最后修改于: 2022-03-11 14:59:45.432000             🧑  作者: Mango
#include
#include
int main() {
std::string myStr = "test string";
for (int i = 0; i < myStr.length(); ++i) {
std::cout << myStr.at(i) << std::endl;
}
return 0;
}