07 2013 档案
摘要:static void Serialize(T instance , string fileName){ using(XmlWriter writer = new XmlWriter(filename , Encoding.UTF8)) { XmlSerializer serializer = new XmlSerializer(typeof(T)); serializer.Serialize(writer , instance); }}Serialize(order , "order.xml");
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;namespace WaitOne{ class Program { static void Main(string[] args) { Calculate calc = new Calculate(); Console.WriteLine("Result = {0}.", calc.Res...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;namespace WaitOne{ class Program { static AutoResetEvent autoEvent = new AutoResetEvent(false); static void Main(string[] args) { Console.WriteLine("Main sta...
阅读全文
摘要:#include #include using namespace std;int main(int argc,char **argv){ /*程序在启动是会通过main的参数传入参数,argc表示参数的个数(包括程序名),argv是一个字符串数组 它包含程序名称和每个参数;假如程序的运行命令如下: test.exe tt 22 33,则argc为4,argv为test.exe tt 22 33 */ try { if(argc<4) throw string("传入的参数不正确!"); } catch(string e) { cout<<e<<
阅读全文
摘要:http://hi.baidu.com/yandavid/item/d66b1fe4a3e4c80f8d3ea80b?qq-pf-to=pcqq.group
阅读全文
摘要:https://filezilla-project.org/
阅读全文