摘要:public static void Test1() { double[][] arr = new double[2][]; arr[0] = new double[2]; arr[1] = new double[2]; arr[0][0] = 666; //for (int i = 0; i (str); MyOGRE.GenerateQuasiRandomNumber(2, 3, ref a...
阅读全文
摘要:#include "stdafx.h" #include #define _NRT_SECURITY_NO_WANING using namespace std; class IProgram { public: virtual void getSal()=0; }; class Program:IProgram { public: Program(char *name,...
阅读全文
摘要:// ConsoleApplication34.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include using namespace std; class Parent { public: Parent() { //cout print(); //c->print(); //p++; ...
阅读全文
摘要:// ConsoleApplication33.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include using namespace std; #define _CRT_SECURE_NO_WARNINGS class A { public: A(A* a) { cout << "1" << endl; } A(const...
阅读全文
摘要:// ConsoleApplication32.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" using namespace std; #include #include #include template struct from_range { // range接口的成员类型 // 其含义为C++容器所包含数据的值类型 ...
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; namespace ConsoleApplication31 { class Program { ...
阅读全文
摘要:// ConsoleApplication19.cpp : 定义控制台应用程序的入口点。 // #pragma warning(disable:4996) #include "stdafx.h" using namespace std; #include class A { public: //=等号操作默认的是浅拷贝 这里重载=为深拷贝 当类里出现指针变量 用等号是浅拷贝 ...
阅读全文
摘要:1.类的函数的内联实现 #include "stdafx.h" #include "testdll.h" #include #include "testdll.h" using namespace std; #ifndef TestDll_H_ #define TestDll_H_ #pragma once #define DLL_EXPORTS #ifdef DLL_E...
阅读全文
摘要:1.map的使用 var hql=string.Format(@"select new map( tc.LimitIndexType as LimitIndexType, tc.LimitScope as LimitScope, tb.Id as Id ) from BasLimitConfig tb,BasProductGroup ta ,BasLimitType tc where tb....
阅读全文
摘要:我这里主要分成了两个xml来进行spring.net管理实际情况中可自己根据需要进行分类 Dao2.xml --> Service.xml Dao层封装 这里我是hibernatetemplate模板做的,因为spring.net事务管...
阅读全文