首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VC/MFC >

提取出了网页的html代码,小弟我要网页中title的内容.该如何写?

2012-01-03 
提取出了网页的html代码,,我要网页中title的内容.,.该怎么写? 急有现存的类否?谢谢大家~[解决办法]CString

提取出了网页的html代码,,我要网页中title的内容.,.该怎么写? 急
有现存的类否?
谢谢大家~

[解决办法]
CString str= "网页代码 ";
CStirng tou;
int w1,w2;
w1=str.Find(0, " <title> ");
w2=str.Find(0, " </title> ");
tou=str.Mid(w1,w2);
[解决办法]
CString str= "网页代码 ";
CStirng tou;
int w1,w2;
w1=str.Find(0, " <title> ");
w2=str.Find(0, " </title> ")-w1;
tou=str.Mid(w1,w2);
[解决办法]
CString str= "网页代码 ";
CStirng tou;
int w1,w2;
w1=str.Find( " <title> ",0);
w2=str.Find( " </title> ",0)-w1;
tou=str.Mid(w1,w2);

热点排行