1 #include<iostream> 2 #include<stdlib.h> 3 #include"time.h" 4 using namespace std; 5 void main() 6 { 7 int a, b, i, j, k; 8 for (i = 0; i < 30; i++)
分类:
其他好文 时间:
2016-03-06 15:54:13
阅读次数:
134
3.6 CF 627 A XOR Equation a + b = a ^ b + (a & b << 1) 注意非法情况和0。 1 #include <iostream> 2 #include <cstdio> 3 using namespace std; 4 typedef long long
分类:
其他好文 时间:
2016-03-06 15:50:44
阅读次数:
189
编写语言 :c++ 程序思路: 二位随机数的生成函数 运算符的随机生成函数 真分数的随机生成函数 编写用时:一个小时 程序运行: 程序代码: //刘元柱 2016.3.6#include<iostream>#include<windows.h>#include<time.h>using namesp
分类:
其他好文 时间:
2016-03-06 15:50:19
阅读次数:
210
e). 消息延迟发送(和前面没太大区别直接上代码) #include <iostream> #include "caf/all.hpp" #include "caf/io/all.hpp" #include <string> #include <chrono> using namespace std
分类:
编程语言 时间:
2016-03-06 15:35:08
阅读次数:
321
1、操作符重载 2、类的封装 #include <stdio.h> #include <algorithm> #include <iostream> using namespace std; int gcd(int m,int n)///求最大公约数 { if(n==0) return m; els
分类:
其他好文 时间:
2016-03-06 15:34:00
阅读次数:
159
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace struct_enu
分类:
编程语言 时间:
2016-03-06 12:41:46
阅读次数:
188
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace ConsoleApplication1{ class P
1.封装MODEL using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace MODEL.FormatModel{
分类:
其他好文 时间:
2016-03-05 23:47:17
阅读次数:
362
四种排序算法的时间比较 #include<iostream> #include<time.h> using namespace std; template<class T> inline void Swap(T& a, T& b); template<class T> void BubbleSort
分类:
编程语言 时间:
2016-03-05 23:29:41
阅读次数:
316
#include<iostream> #include <stdlib.h> #include <time.h> #define random(x) (rand()%x) using namespace std; void main() { srand((int)time(0)); for(int
分类:
其他好文 时间:
2016-03-05 23:29:26
阅读次数:
272