Stella981 Stella981
3年前
C# CSV文件读写
publicclassCSVFileHelper{///<summary///将DataTable中数据写入到CSV文件中///</summary///<paramname"dt"提供保存数据的DataTable</param/
Wesley13 Wesley13
3年前
C++11多线程
C11开始支持多线程编程,之前多线程编程都需要系统的支持,在不同的系统下创建线程需要不同的API如pthread\_create(),Createthread(),beginthread()等,使用起来都比较复杂,C11提供了新头文件<thread、<mutex、<atomic、<future等用于支持多线程。使用C11开启一个线
Wesley13 Wesley13
3年前
C#委托和事件
0\.前言事件和委托是C中的高级特性,也是C中很有意思的一部分。出现事件的地方,必然有委托出现;而委托则不一定会有事件出现。那为什么会出现这样的关系呢?这就需要从事件和委托的定义出发,了解其中的内在。1\.委托说起委托,就不得不回忆一下之前在Linq篇中介绍的匿名方法,其中提到了Func和Action这两个类型
Wesley13 Wesley13
3年前
C++ 位运算函数
\_\_builtin\_parity(n)该函数是判断n的二进制中1的个数的奇偶性intn15;//二进制为1111intm7;//二进制为111cout<<__builti
Wesley13 Wesley13
3年前
C 编程实现打印 0
有效进制范围\2,36\;include<cstdioinclude<windows.hintmain(){system("chcp437");for(inti0;i<256;i){switch(i){case0:printf("%03
Wesley13 Wesley13
3年前
C++——Linux——Hello World!
include  //include位置:/usr/includeincludeusingnamespacestd;intmain(){cout<<"HelloWorld"<     return0;}gotesttest.cpp//用ggcc编译会出
Wesley13 Wesley13
3年前
C++之虚函数
<spanstyle"fontsize:18px;"include<iostreamusingnamespacestd;classAA{public:inta;//虚函数virtualvoidsay_
Wesley13 Wesley13
3年前
C++继承与派生
<fontsize"5"<center继承与派生</center</font<fontcolor"FF0066"说明:以下实验证明一个是出自以Person类为父类,Student为子类的源代码,另一个出自以Point为父类,Recetangle为子类的源代码</font派生类生成过程1.吸收基类成员<
Wesley13 Wesley13
3年前
C# 事件与委托
一些小概念,防止自己太久不用忘记了事件委托:Action<int,int,string….(maxnumberof16parameters)a永远没有返回值,最多16个泛型输入参数e.g.:StaticvoidPrintStr(stringstr){   Console.WriteLine(str);
Wesley13 Wesley13
3年前
C# 爬取图片
网络收集整理  爬取图片 引用AngleSharp NuGet包usingAngleSharp;usingSystem;usingSystem.Collections.Generic;usingSystem.IO;usingSystem.Linq;usingSystem.Net