码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
如何实现序列化为json
因为需要观察对象的数据,所以寻找能自动描述对象中字段名和其值的描述类,咨询了不少人,都推荐使用json,但是json使用起来有一点额外的操作.需要在文件中引用using System.Web.Script.Serialization;可是添加了发现提示报错,找不到空间名字,原来还需要在项目引用中添加...
分类:Web程序   时间:2015-06-27 11:32:57    阅读次数:151
基类类型和派生类型之间的转换以及虚函数
1 #include 2 #include 3 using namespace std; 4 5 class Animal{ 6 public: 7 Animal(string name) : name(name){} 8 void printName(){ 9 ...
分类:其他好文   时间:2015-06-27 11:25:45    阅读次数:101
二进制十六进制转换 (C++版)
#include #include #include using namespace std;string BinToHex(const string &strBin, bool bIsUpper = false){ string strHex; strHex.resize(strBin...
分类:编程语言   时间:2015-06-27 11:23:52    阅读次数:165
Prototype原型模型
#include using namespace std; //从一个对象再创建另一个可定制的对象,无需知道任何的细节,并能提高创建的性能。 class Base { public: virtual void Printf() = 0; virtual Base* Clone() { return 0; } private: };c...
分类:其他好文   时间:2015-06-27 09:53:59    阅读次数:90
AES CBC/CTR 加解密原理
So, lets look at how CBC works first. The following picture shows the encryption when using CBC (in this case, using AES as the cipher).Basically, Cip...
分类:其他好文   时间:2015-06-27 01:17:09    阅读次数:1287
离散数学编程作业
一:真值表的打印 要求:输入任意主析取范式或者主合取范式打印出真值表#include #include #include #include #include using namespace std; stack num; stack fuhao; int n; map...
分类:其他好文   时间:2015-06-26 22:30:33    阅读次数:183
圆进度条
circleProgress using Canvas Show me! 1. Default options 2. Custom options ...
分类:其他好文   时间:2015-06-26 22:18:13    阅读次数:94
POJ2449 (k短路)
#include #include #include #include #include using namespace std;#define maxn 2008#define maxm 2000008#define INF 2000000000int lt[maxn],LT[maxn],sum=...
分类:其他好文   时间:2015-06-26 21:02:22    阅读次数:170
即时显示时间
1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 int main() 7 { 8 time_t ti = time(NULL); 9 struct tm* timer = localtime(&ti)...
分类:其他好文   时间:2015-06-26 19:29:18    阅读次数:145
【读书笔记/解题报告/复健向】动态规划
《挑战程序设计竞赛》2.3.1(POJ3624/NOIP2004采药问题)最基础的01背包问题,标程性质,又二维和一维两种写法。 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 const int MAXN=3...
分类:其他好文   时间:2015-06-26 19:25:24    阅读次数:139
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!