linux tinyxmlɾ³ý½Úµã
bool RemoveNode(string& szFileName)
{
TiXmlDocument myDocument(szFileName);
bool loadOkay = myDocument.LoadFile();
if(loadOkay == false)
return false;
//»ñµÃ¸ùÔªËØ
TiXmlElement *rootElement = myDocument.RootElement();
if(rootElement == NULL)
return false;
//»ñµÃ¸ù½áµã
TiXmlNode *pRootNode = rootElement->ToElement();
//»ñµÃ¸ù½áµãϵĵÚÒ»¸öÔªËØ
TiXmlElement *pChild = rootElement->FirstChildElement();
//»ñµÃ¸ù½áµãϵĵÚÒ»¸ö½Úµã
TiXmlNode *pTempNode = pChild->ToElement();
rootElement->RemoveChild(pTempNode);
myDocument.SaveFile(szFileName);
return true;
}
Ïà¹ØÎĵµ£º
µÚÒ»ÌìÉϰ࣬ÕùÈ¡Ò»¸öÔÂÄÚlinux¸øŪÊìϤÁË
ÌøתÃüÁcd /tmpÌøתµ½tmpĿ¼ cd ../../ Ìøתµ½¸úĿ¼
н¨Îļþ£º touch test.html н¨Ò»¸ötest.html Îļþ
×°µÄÊÇredhatϵͳ ĬÈϵÄapache·þÎñûÓдò¿ª£¬ÐèÒª´òÃüÁî
/etc/init.d/{·þÎñÃû} start»ò ......
Èç½ñ£¬¼¸ºõËùÓеÄÖ÷Á÷²Ù×÷ϵͳ¡¢Ç¶Èëʽ²Ù×÷Ìṩϵͳ¶¼ÌṩÁ˶ÔIPv6ÐÒéÕ»µÄÖ§³Ö£¬ÔÚwindows XPÏÂÃ棬ʹÓÃipv6 installÃüÁî±ã¿ÉÒÔÆô¶¯IPv6ÐÒéÕ»£¬ÔÚĬÈÏ°²×°µÄlinuxÏ£¬ÀûÓÃmodprobe ipv6±ã¿ÉÒÔÒÔÄ£¿éµÄ·½Ê½¼ÓÔØIPv6ÐÒéÕ»¡£±¾Æª½ö½éÉÜlinuxÏÂÃæµÄIPv6ÐÒéÕ»µÄÅäÖÃÃüÁÒÔºó»á½ÐøÍƳö¸üΪÏ꾡µÄlinux¼ ......
ÎÄռǼÁË×÷ÕßÔÚS3C2440¿ª·¢°åÉÏʵÏÖ°´¼üµãÁÁLEDÇý¶¯¿ª·¢µÄÏêϸ¹ý³Ì£¬»¹¼Ç¼ÁËһЩÈÝÒ׳öÏֵĴíÎó£¬ÒÔ¼°Ôõô½â¾öÕâЩ´íÎó¡£
Ò»¡¢Çý¶¯¿ª·¢Á÷³Ì
LinuxÇý¶¯¿ª·¢²»Í¬ÓÚÓ¦ÓóÌÐòµÄ¿ª·¢¡£Çý¶¯¿ª·¢ÊÇÖ±½ÓºÍÓ²¼þ´ò½»µÀµÄ£¬Í¨¹ý¶ÔÓ²¼þµÄ²Ù×÷¸øÓ¦ÓóÌÐòÌṩһЩ½Ó¿Úº¯Êý£¬Ê¹µÃÓ¦ÓóÌÐòÄܹ»&l ......
ÎÊÌ⣺
gcc -c main.c -L ./include libmmgr.a
µÄʱºò£¬×ÜÊDZ¨´í£¬
ÕýÈ·µÄ×ö·¨ÊÇ
gcc -c main.c -L ./include -lmmgr
ÓÐÒ»¸öÎóÇøÊÇ£¬
gcc -c main.c -L. libmmgr.a
ÓÐʱºòÒ²ÊǶԵģ¬µ«ÕâÊÇÌØÀý£¬ÊÇmain.cºÍlibmmgr.aÔÚͬһ¸ö·¾¶Ï£¬ÕâʱµÄ-L.²»Æð×÷Ó㬼´Ê¹É¾³ýÒ²¿ÉÒÔ¡£ ......
±¾Ô´´ÎÄÕÂÊôÓÚ¡¶Linux´óÅï¡·²©¿Í£¬²©¿ÍµØַΪhttp://roclinux.cn¡£ÎÄÕÂ×÷ÕßΪrocrocket¡£
Æô¶¯µÚÒ»²½££¼ÓÔØBIOS
µ±Äã´ò¿ª¼ÆËã»úµçÔ´£¬¼ÆËã»ú»áÊ×ÏȼÓÔØBIOSÐÅÏ¢£¬BIOSÐÅÏ¢ÊÇÈç´ËµÄÖØÒª£¬ÒÔÖÁÓÚ¼ÆËã»ú±ØÐëÔÚ×ʼ¾ÍÕÒµ½Ëü¡£ÕâÊÇÒòΪBIOSÖаüº¬ÁËCPUµÄÏà¹ØÐÅÏ¢¡¢É豸Æô¶¯Ë³ÐòÐÅÏ¢¡¢Ó²ÅÌÐÅÏ¢¡¢ÄÚ´æÐÅÏ¢¡¢Ê±ÖÓÐÅÏ¢¡¢PnPÌØ ......