list3-14.cpp
来自「这是关于VC++中的STL容器的资料,包括了STL容器各个类之间关系以及类的说明」· C++ 代码 · 共 25 行
CPP
25 行
//Listing 3.14
// This program uses the ofstream class to
// generate a simple HTML skeleton
// that can be opened with a web browser.
#include <iostream>
#include <fstream>
using namespace std;
void main(void)
{
ofstream Internet("WebPage.html");
Internet << "<html>" << endl << "<head>" << endl;
Internet << "<title>C++ Standard Class Library</title>" << endl;
Internet << "</head>" << endl << "<body>" << endl;
Internet << "<h3>Object Oriented I/O</h3>" << endl;
Internet << "The iostreams can be used to generate HTML files!" << endl;
Internet << "and Web pages" <<endl;
Internet << "</body>" << endl << "</html>" << endl;
Internet.close();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?