上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 63 下一页
摘要: 配置文件信息如下: 源代码:/************************************************************************版权声明(c)2010-2013,MronginfoLtd.所有权利保留.**本文件属于MronginfoLtd产品的一部分,版权归MronginfoLtd所有,*包括但不限于代码、注释及设计文档、会议记录等等。**本文件未经授权不得用于任何其它用途。*作者:甘全福 *创建日期:2013-7-12***************************************************... 阅读全文
posted @ 2013-07-13 13:11 Predator 阅读(1061) 评论(0) 推荐(0) 编辑
摘要: #include//标准输入输出流usingnamespacestd;//标准命名空间 constintCMP_LES=-1;//定义的常量constintCMP_EQU=0;constintCMP_BIG=1; classComparer//仿函数的类函数的主要功能是重载运算符()这样调用的时候就直接用类引用加上()后面的参数就可以{public: Comparer(intcmpType) { m_cmpType=cmpType;//初始化变量 } booloperator()(intnum1,intnum2)const { boolres; switch(m_cmpType) {... 阅读全文
posted @ 2013-07-09 21:25 Predator 阅读(358) 评论(0) 推荐(0) 编辑
摘要: // mysqlTest.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include #include #include #include using namespace std;class Person{public: Person(string name){this->m_name = name;} void Display(){cout Display();}int _tmain(int argc, _TCHAR* argv[]){ Test test; test.DisplayIn() 阅读全文
posted @ 2013-07-09 19:54 Predator 阅读(838) 评论(0) 推荐(0) 编辑
摘要: char c2[20] = "ganquanfu"; char c1[256]; c1[sizeof(c1)-1] = 0; _snprintf(c1, sizeof(c1), "%s", c2); if(c1[sizeof(c1)-1]!=0) { cout << "warning: string is truncated" <<endl; c1[sizeof(c1)-1]=0; } cout << c1 << endl; 阅读全文
posted @ 2013-07-09 19:52 Predator 阅读(1137) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 63 下一页