C++学习记录之string输出

   代码: #include<iostream> using namespace::std; int main(void) { string str("abcdefg"); cout << str << endl; cout << str.c_str() << endl; cout << str[0] << endl; cout << str[2] << endl; cout << str[23
相关文章
相关标签/搜索