?? 10-0.cpp
字號:
#include<iostream>
#include<fstream>
#include<string>
using std::getline;
using std::cin;
using std::cout;
using std::endl;
using std::string;
using std::ifstream;
using std::ofstream;
using std::cerr;
int main()
{
int fail_count=0;
string fname;
//for each file in the input list
if(getline(cin,fname))
{
ifstream in(fname.begin());
//if it exists, write its contents, otherwise generae an error message
if(in)
{
string s;
while(getline(in,s))
cout<<s<<endl;
}
else
{
cerr<<"cannot open file "<<fname<<endl;
}
}
return fail_count;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -