📄 list4-2.cpp
字号:
#include <string>
#include <iostream>
#include <string.h>
using namespace std;
void main(void)
{
string NewStr("explore new worlds..");
string::iterator F;
F = NewStr.begin();
string::reverse_iterator R;
R = NewStr.rbegin();
while(F != NewStr.end())
{
cout << *F ;
F++;
}
cout << endl;
while(R != NewStr.rend())
{
cout << *R ;
R++;
}
cout << endl;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -