#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
使用YZMHelper帮助类即可using System;using System.Web;using System.Drawing;using System.Security.Cryptography;namespace ProjectWenDangManage.Framework{ ///...
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
#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
求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類型排序。
用寫比較函數的方法
#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
1 namespace jiegouti_1 2 { 3 class hanshu 4 { 5 /// 6 /// 输入参数h,正整数,可以求1-h的和 7 /// 8 /// 9 //在函数上面...
分类:
其他好文 时间:
2014-10-26 09:08:27
阅读次数:
184
一个简单的Bool循环:namespace ConsoleApplication1{ class Program { static void Main(string[] args) { Console.WriteLine("Please ...
枚举类型enum{,,,,...,}举例:namespace ConsoleApplication1{ enum orientation : byte { north=1, south=2, east=3, west=4, ...