XML文件内容
<?xml version="1.0" encoding="UTF-8"?>
<table>
<person>
<profession>teacher</profession>
<name>Tom</name>
<age>28</age>
<height>1.7</height>
</person>
<person>
<profession>student</profession>
<name>Jerry</name>
<age>18</age>
<height>1.8</height>
</person>
<person>
<profession>police</profession>
<name>Jack</name>
<age>38</age>
<height>1.6</height>
</person>
</table>
具体代码
CString GetAppPath()
{
//获取应用程序根目录