因为需要观察对象的数据,所以寻找能自动描述对象中字段名和其值的描述类,咨询了不少人,都推荐使用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
#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
#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
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
#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