?? io20_6.01.c
字號(hào):
// #include <fstream>
#include <fstream.h>
/**
**
stanl@john:d.ch20 222 : cat input
23 109 45 89 6 34 12 90 34 23 56 23 8 89 23
stanl@john:d.ch20 223 : a.out < input
stanl@john:d.ch20 224 : cat copy.out
23 109 45 89 6 34 12 90 34 23 56 23 8 89 23
**
**/
int main()
{
// open a file copy.out for output
ofstream outFile( "copy.out" );
if ( ! outFile ) {
cerr << "Cannot open ``copy.out'' for output\n";
return -1;
}
char ch;
while ( cin.get( ch ) )
outFile.put( ch );
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -