05 2016 档案

多维数组与交错数组的转换
摘要: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... 阅读全文

posted @ 2016-05-31 11:36 听哥哥的话 阅读(354) 评论(0) 推荐(0)

c++多态
摘要:#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,... 阅读全文

posted @ 2016-05-29 21:11 听哥哥的话 阅读(136) 评论(0) 推荐(0)

c++ 指向类成员函数的函数指针
摘要:// ConsoleApplication34.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include using namespace std; class Parent { public: Parent() { //cout print(); //c->print(); //p++; ... 阅读全文

posted @ 2016-05-29 17:50 听哥哥的话 阅读(2042) 评论(0) 推荐(0)

c++虚析构函数的使用及其注意点
摘要:// 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... 阅读全文

posted @ 2016-05-29 15:51 听哥哥的话 阅读(235) 评论(0) 推荐(0)

c++模板实现 linq
摘要:// ConsoleApplication32.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" using namespace std; #include #include #include template struct from_range { // range接口的成员类型 // 其含义为C++容器所包含数据的值类型 ... 阅读全文

posted @ 2016-05-28 21:08 听哥哥的话 阅读(565) 评论(0) 推荐(0)

c# 多维数组、交错数组(转化为DataTable)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; namespace ConsoleApplication31 { class Program { ... 阅读全文

posted @ 2016-05-27 02:27 听哥哥的话 阅读(911) 评论(0) 推荐(0)

c++(重载等号=操作为深拷贝)
摘要:// ConsoleApplication19.cpp : 定义控制台应用程序的入口点。 // #pragma warning(disable:4996) #include "stdafx.h" using namespace std; #include class A { public: //=等号操作默认的是浅拷贝 这里重载=为深拷贝 当类里出现指针变量 用等号是浅拷贝 ... 阅读全文

posted @ 2016-05-25 13:49 听哥哥的话 阅读(2670) 评论(0) 推荐(0)

c# 导入c++ dll
摘要: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... 阅读全文

posted @ 2016-05-23 14:31 听哥哥的话 阅读(238) 评论(0) 推荐(0)

Nhibernate HQL 匿名类(严格说是map的使用以及构造函数的使用
摘要: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.... 阅读全文

posted @ 2016-05-19 00:39 听哥哥的话 阅读(271) 评论(0) 推荐(0)

spring.net 集成nhibernate配置文件(这里暴露了GetCurrentSession 对于 CurrentSession unbond thread这里给出了解决方法)
摘要:我这里主要分成了两个xml来进行spring.net管理实际情况中可自己根据需要进行分类 Dao2.xml --> Service.xml Dao层封装 这里我是hibernatetemplate模板做的,因为spring.net事务管... 阅读全文

posted @ 2016-05-14 12:35 听哥哥的话 阅读(346) 评论(0) 推荐(0)

导航