記錄一些TinyXml使用指南 3

2021-04-08 20:11:00 字數 702 閱讀 4559

#include

#include

#include "tinyxml.h"

using namespace std;

int main()

*p = 0;

ifs.close();

//if(!doc->parse(buffer))

const tixmlelement* root = doc->rootelement();

for( const tixmlnode* child = root->firstchild();

child;

child=child->nextsibling())

else if(!strcmp(sub_tag->value(),"dimension"))}}

cout << "/n";

cout << "/tposition = (" << px << ", " << py << ", " << pz << ")/n";

cout << "/tdimension = (" << dx << ", " << dy << ", " << dz << ")/n/n";}}

delete doc;

getchar();

return 0;

}然後在專案的資料夾中加入乙個xml檔案,如下:

<?xml version="1.0" encoding="utf-8" ?>

Nginx使用指南 一

nginx 的安裝遵循 automake 規則,所以安裝過程簡單,但如果需要使用 pcre 正規表示式庫,則稍點有曲折,本節主要講解如果帶 pcre 安裝,最好有 pcre 庫的源 包,這樣安裝相對簡單得多,本節的安裝方法也是基於 pcre 源 上的安裝。pcre nginx 1 先將pcre 和n...

Nginx使用指南 一

nginx 安裝方法 nginx 的安裝遵循 automake 規則,所以安裝過程簡單,但如果需要使用 pcre 正規表示式庫,則稍點有曲折,本節主要講解如果帶 pcre 安裝,最好有 pcre 庫的源 包,這樣安裝相對簡單得多,本節的安裝方法也是基於 pcre 源 上的安裝。pcre nginx ...

Nginx (一) 快取使用指南

參考 nginx其他優化 nginx快取使用官方指南 使用nginx的proxy cache快取功能取代squid 原創 nginx proxy cache官方解釋 為nginx安裝清快取模組 優化nginx伺服器效能 nginx 乙個web快取坐落於客戶端和 原始伺服器 origin server...