linux tinyxml±éÀú
·½·¨Ò»¡¢
bool ReadElemnt(string& szFileName)
{
TiXmlDocument myDocument(szFileName);
bool loadOkay = myDocument.LoadFile();
if(loadOkay == false)
return false;
TiXmlElement *rootElement = myDocument.RootElement();
if(rootElement == NULL)
return false;
TiXmlElement *pItemElement = rootElement->FirstChildElement();
TiXmlNode *pNextchild = pItemElement->ToElement();
while(pNextchild)
{
pItemElement = pNextchild->ToElement();
TiXmlElement *NameElement = pItemElement->FirstChildElement();
TiXmlElement *AgeElement = NameElement->NextSiblingElement();
TiXmlAttribute *IDAttribute = pItemElement->FirstAttribute();
//Êä³öµÚÒ»¸öPersonµÄnameÄÚÈÝ£¬¼´ÖÜÐÇÐÇ£»ageÄÚÈÝ£¬¼´20£»IDÊôÐÔ£¬¼´1¡£
cout << NameElement->FirstChild()->Value() << "<br>";
cout << AgeElement->FirstChild()->Value() << "<br>";
cout << IDAttribute->Value() << "<br>\n";
pNextchild = pNextchild->NextSibling();
}
return true;
}
·½·¨¶þ¡¢
void ParaseUpdateXml(TiXmlNode* pParent)
{
if(pParent == NULL)
return;
TiXmlNode* pChild = pParent->FirstChild();
while(pChild)
{
cout << pChild->Value() << "<br>";
int t = pChild->Type();
if( t == TiXmlNode::ELEMENT)
Ïà¹ØÎĵµ£º
HOSTCC scripts/mod/sumversion.o
scripts/mod/sumversion.c: In function ‘get_src_version’:
scripts/mod/sumversion.c:384: error: ‘PATH_MAX’ undeclared (first use in
this function)
scripts/mod/sumversion.c:384: error: (Each undeclared identifier is reported
only once
script ......
Èç½ñ£¬¼¸ºõËùÓеÄÖ÷Á÷²Ù×÷ϵͳ¡¢Ç¶Èëʽ²Ù×÷Ìṩϵͳ¶¼ÌṩÁ˶ÔIPv6ÐÒéÕ»µÄÖ§³Ö£¬ÔÚwindows XPÏÂÃ棬ʹÓÃipv6 installÃüÁî±ã¿ÉÒÔÆô¶¯IPv6ÐÒéÕ»£¬ÔÚĬÈÏ°²×°µÄlinuxÏ£¬ÀûÓÃmodprobe ipv6±ã¿ÉÒÔÒÔÄ£¿éµÄ·½Ê½¼ÓÔØIPv6ÐÒéÕ»¡£±¾Æª½ö½éÉÜlinuxÏÂÃæµÄIPv6ÐÒéÕ»µÄÅäÖÃÃüÁÒÔºó»á½ÐøÍƳö¸üΪÏ꾡µÄlinux¼ ......
¹¹½¨»ù±¾µÄǶÈëʽLinux¸ùÎļþϵͳ
¹¹½¨»ù±¾µÄǶÈëʽLinux¸ùÎļþϵͳ
£¨1£©´´½¨¸ùÎļþϵͳµÄ»ù±¾Ä¿Â¼½á¹¹¡£
ÎÒ°ÑÕâ¸ö¹ý³Ì×ö³ÉÁËshell½Å±¾(ÎļþÃûΪmkroot) £¬ºÜ·½±ã£¡
#! /bin/sh
echo "creatint rootfs dir......"
mkdir rootfs
&n ......
1. cdÃüÁî ¸Ä±äµ±Ç°Ä¿Â¼
cd netseek //½øÈënetseekÕâ¸öĿ¼¡£
cd //Í˳öµ±Ç°Ä¿Â¼¡£
2 .
pwdÃüÁî ²é¿´µ±Ç°ËùÔÚĿ¼ÍêÕû·¾¶
eg: pwd //²é¿´µ±Ç°ËùÔÚĿ¼·¾¶¡£
3. lsÃüÁî ²é¿´Ä¿Â¼»òÕßÎļþµÄÊôÐÔ£¬ÁоٳöÈÎһĿ¼ÏÂÃæµÄÎļþ
eg: ls /usr/man
4. rmÃüÁî
ɾ³ýÎļþºÍĿ¼
rm -rf Ŀ¼Ãû×Ö/ ......