📄 ezprint.cpp
字号:
// ezprint.cpp
// demonstrates simple output to printer
#include <fstream> //for file streams
using namespace std;
int main()
{
char* s1 = "\nToday's winning number is ";
int n1 = 17982;
ofstream outfile; //make a file
outfile.open("PRN"); //open it for printer
outfile << s1 << n1 << endl; //send data to printer
outfile << '\x0C'; //formfeed to eject page
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -