C# ¶ÁÈ¡xmlÎļþÎÊÌâ ÔÚÏßµÈ - .NET¼¼Êõ / C#
<?xml version="1.0" encoding="utf-8" ?>
<Menu>
<Navigation text="Îļþ">
<Child text="н¨">
<Grandson>ÏîÄ¿</Grandson>
<Grandson>ÍøÕ¾</Grandson>
<Grandson text="Îļþ">
<Last>Îļþ1</Last>
<Last>Îļþ2</Last>
<Last>Îļþ3</Last>
</Grandson>
</Child>
<Child text="´ò¿ª">
<Grandson>ÏîÄ¿</Grandson>
<Grandson>Îļþ</Grandson>
</Child>
<Child text="Ìí¼Ó">
<Grandson>н¨ÏîÄ¿</Grandson>
<Grandson>н¨ÍøÕ¾</Grandson>
</Child>
</Navigation>
<Navigation text="±à¼">
<Child>¼ôÇÐ</Child>
<Child>¸´ÖÆ</Child>
<Child>Õ³Ìù</Child>
</Navigation>
<Navigation>ÊÓͼ</Navigation>
<Navigation>ÍøÕ¾</Navigation>
</Menu>
ÕâÊÇÎÒµÄxmlÎļþ£¬ÎÒÏë×ö³É¶à¼¶µ¼º½²Ëµ¥£¬ÎÒÏëÏÈͨ¹ý³ÌÐòÕÒµ½µÚÒ»²ã²Ëµ¥£¬ÔÙÑ»·ÕÒµ½ÊÇ·ñÓÐ×Ӳ˵¥£¬±¾È˶Ôxml²»ÊǺÜÁ˽⣬´ó¼Ò°ï°ïÎÒ°É£¬Ð»Ð»£¬ÔÚÏߵȣ¡£¡£¡
C# code:
XmlDocument xml = new XmlDocument();
xml.Load("XmlÎļþµØÖ·");
XmlN
Ïà¹ØÎÊ´ð£º
¿ÉÄÜÒòΪ¹¤×÷µÄÔÒò ½Ó´¥Êý¾Ý¿âÕâ¿é±È½ÏÉÙ£¬Ö®Ç°¶¼ÊÇ×ö³ÌÐòÕâ¿é£¬Êý¾Ý¿âÕâ¿é¶¼ÓÐרÃŵÄÈËÀ´×ö ·Ö¹¤¶¼ºÜÃ÷ϸ ËùÒÔ¶ÔÊý¾Ý¿âÕâÒ»¿éÍêÈ«²»Á˽⡣ǰ¶Îʱ¼ä È¥ÃæÊÔÁ˼¸¼Ò¹«Ë¾ ¼¸ºõ¶¼ÊÇÔÚÊý¾Ý¿âÕâ¿é¹ÒµôµÄ Á¬¸ö¼òµ¥µÄSQ ......
´ó¼ÒºÃ£º
ÎÒÏëʵÏÖ¼ì²âµ½²åÈëSD¿¨ºó×Ô¶¯½«SD¿¨¸ñʽ»¯µÄ¹¦ÄÜ£¬²»ÖªC/C++ÖÐÓÐûÓиñʽ»¯UÅ̵ĺ¯Êý£¿
ÁíÍ⣬ÎÒ²»ÏëʹÓÃSHFormatDrive£¬ÒòΪÕâ¸öº¯Êý»áµ¯³öÊÇ·ñÒª¸ñʽ»¯µÄÌáʾ¿ò£¬ÎÒÐèÒªµÄÊÇϵͳ×Ô¶¯¸ñʽ»¯£¬¶ø²Ù×÷Õß² ......
ÔÚ¸ùĿ¼/libÖдæ·ÅÒ»¸ölog.c£¬log.h£¬²¢ÓÃÏÂÃæµÄÓï¾ä£º
gcc -c log.c
ar crv liblog.a log.o
±àÒë³öÒ»¸öliblog.a¾²Ì¬¿â£¬È»ºóÔÚÎļþ¼Ð£º/testfileÖд´½¨Ò»¸ötest.cºÍtestc.c£¬test.cÖÐÒýÓÃÁËtestc.cÖж¨ÒåµÄ·½·¨ ......
Private Sub Command1_Click()
Dim MyString() As String
Open "a.xml" For Binary As #1 ' ´ò¿ª¸Õ´´½¨µÄÎļþ¡£
ReDim MyString(LOF(1) - 1)
Put #1, , MyRecord ' ¶ÁÈëËùÓÐ×Ö·ûµ½±äÁ¿ÖÐ ......
¹«Ë¾¿ª·¢Ò»¸ö´¥ÃþÆÁ³ÌÐò£¬ÎÒ¸ºÔðµÄÒ»¿é£¬ÊµÏÖÕâÑùÒ»¸ö¹¦ÄÜ£¬µ±Êó±êµã»÷´°¿ÚÖÐͼƬ£¨Ò»ÕÅͼ·Ö³É¼¸²¿·Ö£©µÄÆäÖÐÒ»²¿·Öʱ£¬½«Õⲿ·ÖͼƬ½ØÈ¡³öÀ´£¬µ¯³öеĴ°¿Ú£¬½«½ØÈ¡³öµÄͼƬÏÔʾ³öÀ´¡£ÎÒʹÓÃRectangeÀà¿ØÖÆÁË·µ»Ø£¬ ......