#define _INTSIZEOF(n) ( (sizeof(n) + sizeof(int) - 1) & ~(sizeof(int) - 1) )The above macro simply aligns the size ofnto the nearest greater-or-equa.....
分类:
其他好文 时间:
2014-08-14 20:11:19
阅读次数:
282
String.prototype.replaceAllStr = function (s1, s2) { //JS字符串方法扩展 return this.replace(new RegExp(s1, "gm"), s2); }$(function(){ var aa = "abm...
分类:
数据库 时间:
2014-08-14 20:06:39
阅读次数:
236
本程序使用到了if else和switch语句: 1: import java.util.Scanner; 2: public class 猜拳 { 3: public static void main(String[] args) { 4: System.out.println(" ★★★★猜拳★...
分类:
其他好文 时间:
2014-08-14 20:00:49
阅读次数:
210
题目:本题要求两个给定正整数的最大公约数和最小公倍数。输入格式:输入在一行中给出2个正整数M和N(#includeint main(){ int M,N; scanf("%d%d",&M,&N); int ji=M*N; int shang=M/N; int yushu=M%N; while(yu....
分类:
其他好文 时间:
2014-08-14 19:57:19
阅读次数:
296
http://djxh777.blog.163.com/blog/#m=0&t=1&c=fks_084070087082085070085081085095092080087067083086087065
分类:
移动开发 时间:
2014-08-14 19:55:09
阅读次数:
142
#include #include #include using namespace std;#define N 1005#define INF 0x3f3f3f3fdouble dis[N][N],d[N];double vis[N];double dijkstral(int v0,int n,....
分类:
其他好文 时间:
2014-08-14 19:54:49
阅读次数:
186
枚举加最短路#include #include #include #include using namespace std;#define N 105#define INF 0x7f7f7f7fstruct Height{ int low,high,dif;}H[N*N];struct Edg...
分类:
其他好文 时间:
2014-08-14 19:52:29
阅读次数:
201
1 CString GetComError(const _com_error& e) 2 { 3 CString sMsg; 4 sMsg.Format( 5 _T("HRESULT: 0x%08lx; Error: %s"), 6 e.Error(...
分类:
其他好文 时间:
2014-08-14 19:51:39
阅读次数:
199
1、基础* : 简接寻址运算符& : 地址运算符int count = 10; //定义变量count,赋初始值10;int *intPtr; //*定义变量inPtr是int的指针类型intPtr = &count; //表达式&count表示变量count的指针,将它赋值给指针变量intP...
分类:
其他好文 时间:
2014-08-14 19:51:09
阅读次数:
161
#include #include #include using namespace std;#define N 1005#define INF 0x1f1f1f1fstruct tt{ int x,y,sp;}p[N];int pre[N];bool cmp(tt a, tt b){ ...
分类:
其他好文 时间:
2014-08-14 19:48:09
阅读次数:
254