C# ɾ³ýXML½ÚµãµÄÎÊÌâ - .NET¼¼Êõ / C#
Çë´ó¼Ò°ïÏÂ棬ÎÒµÄXMLÎļþ½á¹¹ÈçÏÂ
<?xml version="1.0" encoding="gb2312"?>
<InforMation>
<Product Name="AAA">
<Path ChooseFolderPath="C:\Users\AAA\Desktop\Bin" TargetFolderPath="C:\Users\AAA\Desktop\н¨Îļþ¼Ð">
<BelowToFolder>C:\Users\AAA\Desktop\Bin</BelowToFolder>
<FileName>bridgeunattend.exe</FileName>
</Path>
</Product>
<Product Name="BBB">
<Path ChooseFolderPath="C:\Users\AAA\Desktop\oldBll" TargetFolderPath="C:\Users\AAA\Desktop">
<BelowToFolder>C:\Users\AAA\Desktop\oldBll\ex</BelowToFolder>
<FileName>BLL.dll</FileName>
<BelowToFolder>C:\Users\AAA\Desktop\oldBll</BelowToFolder>
<FileName>brdgcfg.dll</FileName>
</Path>
</Product>
<Product Name="CCC">
<Path ChooseFolderPath="C:\Users\AAA\Desktop\Bin" TargetFolderPath="C:\Users\AAA\Desktop\н¨Îļþ¼Ð" />
</Product>
</InforMation>
ÎÒÏë°ÑProduct NameΪBBBµÄ½ÚµãÈ«²¿É¾µô£¬µ«Èç¹ûÎÒÓÃÏÂÃæ´úÂ룬ɾ³ýÍêºó»¹»á´æÔÚ<Product> </Product>Õâ¶Ô±êÇ©£¬ÎÒÏëÎÊһϣ¬ÒªÈçºÎ²Ù×÷²ÅÄÜ°ÑÖ¸¶¨µÄ½Ú
Ïà¹ØÎÊ´ð£º
ÓÐÒ»10*10¾ØÕ󣬳ýÈ¥µÚÒ»¸öµã£¨0£¬0£©ºÍ×îºóÒ»µã£¨9£¬9£©£¬»¹Óа˸öµãΪ1£¬ÆäËû¶¼Îª0£¬ÒªÇóÓöþάÊý×é±íʾ¡£°Ë¸öµãÊÇËæ»úÉú³ÉµÄ£¬±àдÏà¹Ø³ÌÐò±íʾ¾ØÕóËùÓпÉÄÜÇé¿ö¡£
ÕæÐÄÇó½Ì¸÷λ¸ßÊÖ£¬°¥£¡±¾ÈËÌ«²ËÁË£¡ºÇºÇ£¡
......
ÏÖÔÚÓиöxmlÎļþÊÇ<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xm ......
ΪʲôÎҵijÌÐòµ÷ÓÃXMLÅäÖÃÎļþÖеİ¢À²®ÎÄÏÔʾ²»³öÀ´£¿ÆäËûµÄÓïÖÖ¶¼¿ÉÒÔ£¬ÈçÖÐÎÄ£¬Ó¢ÎÄ£¬µÂÎĶ¼¿É¡£
ÎÒ½«XMLµÄ±àÂë¸ÄΪutf-8ºÍunicodeµÄµ½µÃ½á¹û¶¼Ò»Ñù.
°¢À²®ÎĵÄ×Ö¿âÄãÓÐô£¿
ÓÐ,ÎÒµÄEXEÊÇ·ÅÔÚpc»úÉÏÖ´Ðе ......
ͦ·±Ëö£¬Ö®Ç°·¢µÄÌû×Ó£¬·Öֵ̫µÍÏÖÔÚÖØ·¢Ò»¸ö¡£»¶Ó¸÷λ´óÏÀ~~
#include "stdlib.h"
#include "math.h"
#include "stdio.h"
float objfx(float x[]);
void constraint(float x[] ......
¹«Ë¾¿ª·¢Ò»¸ö´¥ÃþÆÁ³ÌÐò£¬ÎÒ¸ºÔðµÄÒ»¿é£¬ÊµÏÖÕâÑùÒ»¸ö¹¦ÄÜ£¬µ±Êó±êµã»÷´°¿ÚÖÐͼƬ£¨Ò»ÕÅͼ·Ö³É¼¸²¿·Ö£©µÄÆäÖÐÒ»²¿·Öʱ£¬½«Õⲿ·ÖͼƬ½ØÈ¡³öÀ´£¬µ¯³öеĴ°¿Ú£¬½«½ØÈ¡³öµÄͼƬÏÔʾ³öÀ´¡£ÎÒʹÓÃRectangeÀà¿ØÖÆÁË·µ»Ø£¬ ......