码迷,mamicode.com
首页 >  
搜索关键字:namespace    ( 41927个结果
数组名
#include using namespace std; int main() { int a[3] = {1, 2, 3}; cout << *(a) << std::endl; cout << *(a+ 1) << std::endl; cout << *(...
分类:编程语言   时间:2014-10-26 16:57:10    阅读次数:164
论坛自动灌水脚本
将差不多两年前的代码重写了一遍,干净了许多!脚本安装后,页面最下方会出现图形用户界面。其实脚本的核心代码就startWater函数里的后三行~ 1 // ==UserScript== 2 // @name autoreply 3 // @namespace http://www...
分类:其他好文   时间:2014-10-26 16:55:02    阅读次数:138
C#生成随机验证码
使用YZMHelper帮助类即可using System;using System.Web;using System.Drawing;using System.Security.Cryptography;namespace ProjectWenDangManage.Framework{ ///...
分类:Windows程序   时间:2014-10-26 14:22:12    阅读次数:282
使用HttpDownLoadHelper下载文件
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.IO;using System.Threading;namespace ProjectWenDangManage...
分类:Web程序   时间:2014-10-26 14:15:43    阅读次数:182
SDUT OJ 2862 勾股定理
#include using namespace std; int a[1010]; void qsort(int a[],int l,int r) { int x=a[l],i=l,j=r; if(l>=r) return ; while(i<j) { while(i=x) j--; a[i]=a[j]; while(i<j&&a[i]<=x) i++; a[j]=a[...
分类:其他好文   时间:2014-10-26 11:45:37    阅读次数:282
hdu2035【二分快速幂】
求A?B取模。直接二分快速幂即可。比如9?9=(9?2)?4 * 9,将B一直模2然后A自乘,复杂度long(n)。 1 #include 2 #include 3 #include 4 using namespace std; 5 6 int quickpow(int a, int b,...
分类:其他好文   时间:2014-10-26 11:37:12    阅读次数:124
vector,對string排序
這是vector中對string類型排序。 用寫比較函數的方法   #include #include #include #include #include #include using namespace std; //比較函數,升序排序 bool cmp(const string &x,const string &y) //&符號不能少 { return x>y...
分类:编程语言   时间:2014-10-26 10:25:15    阅读次数:195
20141024--函数
1 namespace jiegouti_1 2 { 3 class hanshu 4 { 5 /// 6 /// 输入参数h,正整数,可以求1-h的和 7 /// 8 /// 9 //在函数上面...
分类:其他好文   时间:2014-10-26 09:08:27    阅读次数:184
C#编程(3_流程控制)
一个简单的Bool循环:namespace ConsoleApplication1{ class Program { static void Main(string[] args) { Console.WriteLine("Please ...
分类:Windows程序   时间:2014-10-26 07:58:53    阅读次数:349
C#编程(4_复杂的变量类型)
枚举类型enum{,,,,...,}举例:namespace ConsoleApplication1{ enum orientation : byte { north=1, south=2, east=3, west=4, ...
分类:Windows程序   时间:2014-10-26 07:58:43    阅读次数:276
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!