码迷,mamicode.com
首页 >  
搜索关键字:amp    ( 86777个结果
an implement of sizeof guaranteeing bit alignment
#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
把sql注入关键字全部一次性自动转换成全角
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
PAT - 基础 - 最大公约数和最小公倍数
题目:本题要求两个给定正整数的最大公约数和最小公倍数。输入格式:输入在一行中给出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
IOS开发教程。
http://djxh777.blog.163.com/blog/#m=0&t=1&c=fks_084070087082085070085081085095092080087067083086087065
分类:移动开发   时间:2014-08-14 19:55:09    阅读次数:142
hdu 1596
#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
hdu 2363
枚举加最短路#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
VC2010 _com_error 返回的错误信息
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
oc之指针
1、基础* : 简接寻址运算符& : 地址运算符int count = 10; //定义变量count,赋初始值10;int *intPtr; //*定义变量inPtr是int的指针类型intPtr = &count; //表达式&count表示变量count的指针,将它赋值给指针变量intP...
分类:其他好文   时间:2014-08-14 19:51:09    阅读次数:161
hdu 1598
#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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!