原创 Dictionary使用技巧

1、要使用Dictionary集合,需要導入C#泛型命名空間   System.Collections.Generic(程序集:mscorlib) 2、描述    1)、從一組鍵(Key)到一組值(Value)的映射,每一個添加項都是由

原创 C# IPv4 控件

調用時 直接使用  private IPv4TextBox XXX; using System; using System.Collections.Generic; using System.ComponentModel; using S

原创 C++操作 XML

// MFCApplication1Dlg.cpp : 實現文件 // #include "stdafx.h" #include "MFCApplication1.h" #include "MFCApplication1Dlg.h" #

原创 https://tieba.baidu.com/p/4008858829

 新編C C++程序設計教程(廣樹建) 下載地址:http://pan.baidu.com/s/1o6qqXwY 密碼:zdh6 資源大小:52.2M 挑戰C++程序語言(蔡文輝) 下載地址:http://pan.baidu.com/

原创 C# 獲得%ProgramData% 路徑

法一: string str = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData); 法二: private bool ProgramD

原创 jilushiyong

 pDocElement->appendChild(pDoc->createTextNode("\n\t"));   pDocElement->appendChild(pNewChildElement);  是不是就有了

原创 xxxx

 XDocument doc = new XDocument(                 new XDeclaration("1.0", "utf-8", "yes"),                 new XElement

原创 STL::Vector

class Widget { ... }; typedef vector<Widget> WidgetContainer; typedef WidgetContainer::iterator WCIterator; WidgetConta

原创 XML 追加節點 帶縮進

Form1.Designer.cs using System; using System.IO; using System.Xml; using System.Xml.Linq; namespace XMLNode { par