码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
C++学习记录(1)——引用
#include #include using namespace std;/*通过此程序可以发现引用的引用变了,原来的值还是会变, *所以定义函数的时候,如果想让实际变量发生变化,形式 *参数可以定义成引用的形式。另外要注意的是,这里的&不 *是C中的取地址符号,而是引用的意思。 */ int m...
分类:编程语言   时间:2015-04-30 21:32:28    阅读次数:118
[工具类]缓存辅助类
写在前面在项目中的统计模块中,查询耗费的时间,实在是太长了,通过优化sql语句或者添加缓存来提高查询的速度,自己就弄了一个缓存的辅助类,方便操作缓存中的数据。CacheHelper 1 using System; 2 using System.Collections; 3 using System....
分类:其他好文   时间:2015-04-30 19:47:10    阅读次数:190
验证码
今天项目又用到了验证码。每次都去找,还不是自己项目需要的效果。修改几下后。故备份一下 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 using S...
分类:其他好文   时间:2015-04-30 19:47:04    阅读次数:130
C++11-----Basic2
1.使用using声明 .using namespace spacename .using namespace::name2.标准库类型string Initialization .string s // default null string .string s(s1) ...
分类:编程语言   时间:2015-04-30 19:36:15    阅读次数:149
UVa11582 - Colossal Fibonacci Numbers!(模运算)
#include #include #include #include #include #include #include #include #include #include using namespace std; typedef unsigned long long ULL; const int maxn = 1005; int f[maxn][6*maxn],p[maxn]; int...
分类:其他好文   时间:2015-04-30 18:21:50    阅读次数:130
C++数组。
#include using namespace std; //指定一个位置开始,然后每隔k个位置剔除一个元素,输出最后剩余的元素。 //相当于所有数据绕成一圈,按k个位置长度剔除数据,当只剩一个时,游戏结束,得到结果. int Grial(int a[],int end,int start,int k) { int n = end; int i = start; while(n>1) ...
分类:编程语言   时间:2015-04-30 18:19:04    阅读次数:94
2014省赛回顾
题目链接:1058--1067http://xcacm.hfut.edu.cn/problemset.php#省赛题其实并不难。。。练手速用。。。1063: 4min 1 //4min 2 3 #include 4 #include 5 #include 6 using namespace s...
分类:其他好文   时间:2015-04-30 17:59:53    阅读次数:192
mysql类型转换函数convert与cast的用法,及SQL server的区别
首先,convert函数字符集转换 : CONVERT(xxx USING gb2312) 类型转换和SQL Server一样,不过类型参数上有不同: CAST(xxx AS 类型), CONVERT(xxx,类型),类型必须用下列的类型: 可用的类型 二进制,同带binary前缀的效果 : B.....
分类:数据库   时间:2015-04-30 17:53:45    阅读次数:142
Worker Thread
http://www.codeproject.com/Articles/552/Using-Worker-ThreadsIntroductionWorker threads are an elegant solution to a number of problems about concurren...
分类:其他好文   时间:2015-04-30 17:53:40    阅读次数:93
用c++读取文件夹中的所有文件名
//头文件,注意要加stdafx.h和io.h等#include "stdafx.h"#include #include using namespace std;下面这个子函数计算了当前指定path文件夹下的所有文件(包括迭代子文件夹中的文件)//获取子文件名的子函数//path指向要读取的文件夹路...
分类:编程语言   时间:2015-04-30 17:38:20    阅读次数:1256
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!