📄 filelist.h
字号:
void AddFilelist(word& w,LinkedList<word>& f1,LinkedList<word>& f2,LinkedList<word>& f3)
{
if(w.type==1)
{
f1.InsertRear(w);
}
if(w.type==3)
{
f2.InsertRear(w);
}
f3.InsertRear(w);
}
void Printlist(LinkedList<word>& f1,LinkedList<word>& f2,LinkedList<word>& f3)
{
cout<<"To see word list,press 'w',press other to exit:";
char str;
cin.get(str);
if(str=='w')
{
f3.Reset();
for(;!f3.EndOfList();f3.Next())
cout<<"LINE"<<setw(3)<<f3.Data().line<<":"<<setw(10)<<f3.Data().ch<<setw(6)<<f3.Data().type<<setw(12)<<f3.Data().chname<<endl;
}
else exit(0);
cout<<"To see variable list,press 'v',press other to exit:";
cin.get(str);
cin.get(str);
if(str=='v')
{
f1.Reset();
for(;!f1.EndOfList();f1.Next())
cout<<"LINE"<<setw(3)<<f1.Data().line<<":"<<setw(10)<<f1.Data().ch<<setw(6)<<f1.Data().type<<setw(12)<<f1.Data().chname<<endl;
}
else exit(0);
cout<<"To see symbol list,press 's',press other to exit:";
cin.get(str);
cin.get(str);
if(str=='s')
{
f2.Reset();
for(;!f2.EndOfList();f2.Next())
cout<<"LINE"<<setw(3)<<f2.Data().line<<":"<<setw(10)<<f2.Data().ch<<setw(6)<<f2.Data().type<<setw(12)<<f2.Data().chname<<endl;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -