?? xml.h
字號(hào):
// C++ By Example, Chapter 9
// Generating XML/HTML
#ifndef __XML_H
#define __XML_H
#include <string>
#include <fstream>
#include "tag.h"
class XMLDoc {
TagList m_tstack;
std::ofstream m_out;
public:
// Tag stack management
void push_tag(const Tag& tag);
Tag current() const;
void push(const Tag& tag);
bool empty() const;
bool pop();
virtual void outs(const char *str);
void outs(const string& s);
void open(const string& name);
void close();
~XMLDoc()
{ close(); }
}; // class XMLDoc
XMLDoc& operator<<(XMLDoc& doc, char *s);
XMLDoc& operator<<(XMLDoc& doc, const string& s);
XMLDoc& operator<<(XMLDoc& doc, int val);
XMLDoc& operator<<(XMLDoc& doc, const Tag& tag);
#endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -