📄 position.h
字号:
#ifndef POSITION_H
#define POSITION_H
void Position() //行指针定位函数
{
int num,t=0; //num要查看的行号
cout<<"请输入要查看的行:";
cin>>num;
if(num>LineNum)
return;
j=v.begin();
cout<<"第"<<num<<"行"<<endl<<(*(j+num-1))->s<<endl;
history++; //历史纪录保存
fstream fhisout("history.his",ios::app|ios::out);
fhisout<<"查看第"<<num<<"行"<<'\n';
fhisout.close();
system("pause");
}
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -