function.h
cstring openfile(cstring);
cstring getcontext(cstring,int,int);
void str2array(cstring);
struct xmlnode
;function.cpp
#include
#include
#include
#include "function.h"
extern xmlnode node[1000];
extern count;
cstring openfile(cstring file)
return context;
}
cstring getcontext(cstring context,int i,int j)
k1=k;
while((k'))
j1=k;
firstname=getcontext(context,i1,k1);
while((k
while((k'))
k2=k;
while((k'))
j2=k;
nextname=getcontext(context,i2,k2);
tempname='/'+firstname;
while(k
while((k'))
k2=k;
while((k'))
j2=k;
nextname=getcontext(context,i2,k2);
if(nextname.compare(stack.getat(max))==0)
}while((nextname.getlength()>0)&&(nextname[0]=='/'));
//same
}else
firstname=nextname;
i1=i2;
k1=k2;
j1=j2;
while((k
while((k'))
k2=k;
while((k'))
j2=k;
nextname=getcontext(context,i2,k2);
tempname='/'+firstname;
}}
main.cpp
#include
#include
#include "function.h"
#define filename "web.xml"//初始xml檔案
xmlnode node[1000];
int count=0;
void main()
{cstring context=openfile(filename);
str2array(context);
for(int i=0;i
Flask Vue的乙個示例
這裡記錄下乙個flask vue的乙個示例 1.系統環境 python3.7 sqlite3資料庫,資料庫名稱 books.db 2.專案結構 title 測試 api books defbooks conn sqlite3.connect books.db conn.row factory sql...
NHibernate的乙個示例
一 建立poco實體 工廠表factoryentity,關聯企業表companyentiry,company id關聯t pm company表 企業表 manytoone name companyentity classtype typeof companyentity lazy laziness...
乙個PlaySound示例
using system using system.collections using system.componentmodel using system.runtime.interopservices internal class helpers dllimport winmm public s...