Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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)


Ïà¹ØÎĵµ£º

±àÒë linux 2.6.18³ö´í½â¾ö·½·¨

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 ......

LinuxϵÄIPv6µØÖ·¡¢Â·ÓÉÒÔ¼°ËíµÀÅäÖÃ

    Èç½ñ£¬¼¸ºõËùÓеÄÖ÷Á÷²Ù×÷ϵͳ¡¢Ç¶Èëʽ²Ù×÷Ìṩϵͳ¶¼ÌṩÁ˶ÔIPv6ЭÒéÕ»µÄÖ§³Ö£¬ÔÚwindows XPÏÂÃ棬ʹÓÃipv6 installÃüÁî±ã¿ÉÒÔÆô¶¯IPv6ЭÒéÕ»£¬ÔÚĬÈÏ°²×°µÄlinuxÏ£¬ÀûÓÃmodprobe ipv6±ã¿ÉÒÔÒÔÄ£¿éµÄ·½Ê½¼ÓÔØIPv6ЭÒéÕ»¡£±¾Æª½ö½éÉÜlinuxÏÂÃæµÄIPv6ЭÒéÕ»µÄÅäÖÃÃüÁÒÔºó»á½ÐøÍƳö¸üΪÏ꾡µÄlinux¼ ......

¹¹½¨»ù±¾µÄǶÈëʽLinux¸ùÎļþϵͳ


¹¹½¨»ù±¾µÄǶÈëʽLinux¸ùÎļþϵͳ
 
 
¹¹½¨»ù±¾µÄǶÈëʽLinux¸ùÎļþϵͳ
£¨1£©´´½¨¸ùÎļþϵͳµÄ»ù±¾Ä¿Â¼½á¹¹¡£
ÎÒ°ÑÕâ¸ö¹ý³Ì×ö³ÉÁËshell½Å±¾(ÎļþÃûΪmkroot) £¬ºÜ·½±ã£¡
#! /bin/sh
    echo "creatint rootfs dir......"
    mkdir rootfs
  &n ......

LinuxÃüÁÈëÃÅ

1. cdÃüÁî ¸Ä±äµ±Ç°Ä¿Â¼
cd netseek //½øÈënetseekÕâ¸öĿ¼¡£

cd //Í˳öµ±Ç°Ä¿Â¼¡£
2 .
pwdÃüÁî ²é¿´µ±Ç°ËùÔÚĿ¼ÍêÕû·¾¶

eg: pwd //²é¿´µ±Ç°ËùÔÚĿ¼·¾¶¡£
3. lsÃüÁî ²é¿´Ä¿Â¼»òÕßÎļþµÄÊôÐÔ£¬ÁоٳöÈÎһĿ¼ÏÂÃæµÄÎļþ
eg: ls /usr/man
4. rmÃüÁî 
ɾ³ýÎļþºÍĿ¼
rm -rf   Ŀ¼Ãû×Ö/ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ