归并排序#define LOCAL#include#include
//生成随机数c++11支持 #include #include #includeusing namespace std;int const
MAX_N=10;int a[MAX_N],b[MAX_N],c[2*MAX_N];//归...
分类:
其他好文 时间:
2014-05-24 06:01:45
阅读次数:
354
#include#include#include#includeusing namespace
std;int bigswap(char* a,int start,int end){ while(start<end) {
swap(a[start],a[end]); ...
分类:
其他好文 时间:
2014-05-24 04:53:54
阅读次数:
208
神水。求n=log(k p)->
k=pow(p,1/n)。G++和C++输出不同,编译器原因。代码: 1 #include 2 #include 3 #include 4 #include 5
#include 6 7 using namespace std; 8 9 int main()10.....
分类:
其他好文 时间:
2014-05-23 23:31:42
阅读次数:
237
#include "stdafx.h"#include#include#includeusing
namespace std;DWORD WINAPI thread1(LPVOID param){ char buf[256]; DWORD rlen=0;
HANDLE hPipe ...
分类:
其他好文 时间:
2014-05-23 23:13:19
阅读次数:
304
#includeusing namespace std;class node{public:
node():value(0),next(NULL){} ~node(){} int value; node* next;};///be careful
this ;node* cr...
分类:
其他好文 时间:
2014-05-23 23:06:05
阅读次数:
258
#includeusing namespace std;class node{public:
node():value(0),next(NULL){} ~node(){} int value; node* next;};///be careful
this ;node* cr...
分类:
其他好文 时间:
2014-05-23 23:03:01
阅读次数:
301
1.PHP 5.3中的新特性1.1 PHP 5.3中的新特性1.1.1. 支持命名空间
(Namespace)毫无疑问,命名空间是PHP5.3所带来的最重要的新特性。在PHP5.3中,则只需要指定不同的命名空间即可,命名空间的分隔符为反斜杆\。select.php[php]view
plaincop...
分类:
Web程序 时间:
2014-05-23 11:58:58
阅读次数:
435
C#中查询字符串中是否包含指定字符/串,使用IndexOf还是Contains?这是一个很常见的命题,以前也没有注意,今天QQ群里有人提起,于是就做了下试验,代码如下:using
System;using System.Diagnostics;namespace ConsoleApplication...
分类:
其他好文 时间:
2014-05-23 11:50:40
阅读次数:
270
using System;using
System.Collections.Generic;using System.IO;using System.Linq;using
System.Reflection;using System.Runtime.InteropServices;namespace...
分类:
其他好文 时间:
2014-05-23 10:59:24
阅读次数:
223
#includeusing namespace std;class node{public:
node():value(0),next(NULL){} ~node(){} int value; node* next;};///be careful
this ;node* cr...
分类:
其他好文 时间:
2014-05-23 10:31:24
阅读次数:
240