码迷,mamicode.com
首页 >  
搜索关键字:namespace    ( 41927个结果
C++单链表反转
单链表反转笔记: 1 #include 2 #include 3 using namespace std; 4 5 struct ListNode 6 { 7 int val; 8 ListNode* next; 9 ListNode(int i):val(i),next(...
分类:编程语言   时间:2015-04-07 13:22:27    阅读次数:122
由隐马尔科夫意淫无字典中文分词 C#
using System; using System.Windows.Forms; using System.IO; using System.Text.RegularExpressions; using System.Collections; using System.Collections.Generic; using System.ComponentModel; namespace HMM...
分类:Windows程序   时间:2015-04-07 11:58:15    阅读次数:319
vc中通过ADO操作数据库
准备工作 (1)、引入ADO类 #import "c:\program files\common files\system\ado\msado15.dll" \    no_namespace \    rename ("EOF", "adoEOF")  (2)、初始化COM     在MFC中可以用AfxOleInit();非MFC环境中用: ...
分类:数据库   时间:2015-04-07 11:55:14    阅读次数:246
C++笔试易错题集(持续更新)
1.如下代码输出结果是什么?12345678910111213141516#includechar *myString(){char buffer[6] = {0};char *s ="Hello World!";for (int i =0; i using namespace std;class ...
分类:编程语言   时间:2015-04-07 11:44:26    阅读次数:271
各种数据类型取值范围
通过代码测试:/* coder: ACboy date: 2010-3-1*/#include #include using namespace std;int main(){ cout << "int 类型能存储的最大值和最小值" << endl; cout << "INT_MAX = " <.....
分类:其他好文   时间:2015-04-07 11:28:20    阅读次数:138
14.8.2. 标准库定义的函数对象
#include#include#includeusing namespace std;/*这个类很简单,它定义了一个操作:函数调用操作符,该操作符有一个形参并返回形参的绝对值。函数调用操作符必须声明为成员函数。一个类可以定义函数调用操作符的多个版本,由形参的数目或类型加以区别*/struct ab...
分类:其他好文   时间:2015-04-07 11:24:29    阅读次数:123
14.7. 自增操作符和自减操作符
#include#includeusing namespace std;/*14.7. 自增操作符和自减操作符*///可以定义一个类,该类指向一个数组并为该数组中的元素提供访问检查/*构造函数的参数是两个指针:一个指向数组的开始,另一个指向数组的末端。构造函数用这两个指针初始化 beg 和 end,...
分类:其他好文   时间:2015-04-07 11:17:46    阅读次数:112
C++产生固定范围内的固定数量的随机数
1 #include 2 #include 3 #include 4 using namespace std; 5 void knuth(int n, int m) 6 { 7 srand((unsigned int)time(NULL)); 8 for (int i = 0; i...
分类:编程语言   时间:2015-04-07 11:13:52    阅读次数:109
第五周 阅读程序 1
/* *Copyright (c)2014,烟台大学计算机与控制工程学院 *All rights reserved. *文件名称:d.cpp *作 者:张旺华 *完成日期:2015年3月25日 *版 本 号:v1.0 */ #include using namespace std; class base { private: int m; public:...
分类:其他好文   时间:2015-04-07 10:08:50    阅读次数:130
uva 11992(线段树)
题意:有一个行r,列c的矩阵的初始值都为0,然后有三种操作,子矩阵(x1,y1,x2,y2)全部元素都增加v或置为v,或者查询这个子矩阵的元素和、最大值、最小值。 题解:区间修改模板题,把每行当做一个线段树。 #include #include #include using namespace std; const int N = 50000 * 4; const int INF =...
分类:其他好文   时间:2015-04-07 09:49:28    阅读次数:116
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!