码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
C#版乘法口诀
using System; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { for (int i = 1; i < 10; i++) { for (int...
分类:Windows程序   时间:2015-06-26 18:06:05    阅读次数:118
C++ 优先队列类实现
1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 9 int a[10000],b[10000];10 class t11 {12 public:13 ...
分类:编程语言   时间:2015-06-26 17:39:49    阅读次数:127
利用缓存、Timer间隔时间发送微信的实例,很有用的例子
//Class WechatOfferExcutor 此类为微信触发类,属于上层调用类,其中有用到用静态变量缓存offer信息,Task异步执行发送方法等using Newtonsoft.Json.Linq;using System;using System.Collections.Generic;...
分类:微信   时间:2015-06-26 17:38:28    阅读次数:350
c++ std::bitset
http://blog.csdn.net/qll125596718/article/details/6901935#include #include #include using namespace std;int main() { for(uint64_t i=0; i bs; //uint64_...
分类:编程语言   时间:2015-06-26 17:33:02    阅读次数:230
HDU ACM 2178 猜数字
分析:最坏情况下,在1到m间,最多只要猜log2(m)+1(取整)次,所以=>m=2^n-1。即猜n次,猜到的最大数为2^n-1.也可认为,在数1到2^n-1间,都可以在n次内猜出来。 #include #include using namespace std; int main() { int T,n; scanf("%d",&T); while(T--) { printf("...
分类:其他好文   时间:2015-06-26 16:20:30    阅读次数:130
字符串翻转
比如将"vpoet" 变为“teopv” #include using namespace std; int main() { char Before_Str[100]={0}; cout<<"******************************vpoet*********************************\n"; cout<<"Please inpu...
分类:其他好文   时间:2015-06-26 16:17:33    阅读次数:92
HDU ACM 4561 连续最大积->DP
分析:dp[i][0]表示到第i个数成绩为负时的最大积个数,dp[i][1]表示到第i个数成绩为正时的最大积个数。 #include using namespace std; #define N 10005 #define max(a,b) ((a)>(b)?(a):(b)) int dp[N][2]; int main() { int T,t,i,n,sum,x; t=1; sc...
分类:其他好文   时间:2015-06-26 15:03:43    阅读次数:93
函数指针&绑定: boost::functoin/std::function/bind
boost::functoin/std::function可用于所有 () operator 操作的对象(函数,类,成员函数,lambda表达式等等)。用处就是可以使用一个函数指针调用不用的函数实体,实现回调函数,或者多种不同的算法等等。很好的例子:原文链接#include #include using namespace std;std::funct...
分类:其他好文   时间:2015-06-26 15:02:57    阅读次数:120
找规律 Codeforces Round #309 (Div. 2) A. Kyoya and Photobooks
题目传送门 1 /* 2 找规律,水 3 */ 4 #include 5 #include 6 #include 7 #include 8 #include 9 using namespace std;10 11 const int MAXN = 1e4 + 10;12 const...
分类:其他好文   时间:2015-06-26 13:26:59    阅读次数:159
Build生成者模型
#include using namespace std; //不知道为什么其实很好解释的东西在网上搞的人晕头转向的,以下是我的理解。 //一个基类衍生出许多具体实现的子类,这些子类都实现了虚基类的公共方法, //然后我们再构造一个Direver对象,让基类做为他的成员变量,在调用的时候 //可以选择任意的子类对象传入然后可以调用该子类的方法,是不是很简单呢?//“生成器模式的...
分类:其他好文   时间:2015-06-26 12:59:58    阅读次数:106
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!