#pragma mark -#pragma mark - UIWebView Delegate Methods- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigat...
分类:
移动开发 时间:
2014-09-12 14:43:13
阅读次数:
182
步骤:1.在info.plist里加入UIBackgroundModes键,其值为数组,数组之一为voip字符串:UIBackgroundModesvoip2.在程序启动的时候调用- (void)setupBackgroundHandler函数,函数体如下:#pragma mark - VoIP- ...
分类:
移动开发 时间:
2014-09-12 11:33:43
阅读次数:
176
// 触发器create or replace trigger tr_sync_BD_MARBASCLASSafter INSERT or UPDATEon BD_MARBASCLASS for each rowdeclare v_cnt integer;PRAGMA AUTONOMOUS_TRAN...
分类:
数据库 时间:
2014-09-11 13:48:11
阅读次数:
361
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5350
昨天写死都是WA,今天按枚举a,b,c的长度以及调用string类的函数substr,1A.....
还是调用系统函数代码能短很多而且代码短意味着出错机会少&思考的逻辑更容易......
写贴个昨天的WA代码 还是不明白为啥WA.....
//#pragma c...
分类:
其他好文 时间:
2014-09-10 22:33:01
阅读次数:
324
① #pragma comment (lib, "libgsl.a")这是告诉编译器在编译形成的.obj文件和.exe文件中加一条信息,使得 链接器在链接库的时候要去找libgsl.a这个库,不要先去找别的库。加入这条语句后,就不需要把libgsl.a这个文件额外通过链接器加入到工程里了。#prag...
分类:
编程语言 时间:
2014-09-10 21:03:11
阅读次数:
288
1 #pragma once 2 #include 3 #include 4 #include 5 #include 6 #pragma comment(lib, "dbghelp.lib") 7 8 9 inline BOOL IsDataSectionNeeded(const WC...
分类:
其他好文 时间:
2014-09-10 20:53:11
阅读次数:
207
一.POJ 1157 小花店问题
dp[i][j]表示前i朵花放入前j个瓶子得到的最大价值。
因为要求j>i,所以有两种放法:
(1)当i=j的时候dp[i][j]=v[1][1]+v[2][2]+v[i][j]+……
(2)当j>i的时候dp[i][j]=max(dp[i][j-1],dp[i-1][j-1]+v[i][j]);
#pragma comment(linker, "/ST...
分类:
其他好文 时间:
2014-09-10 16:00:00
阅读次数:
157
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5341
第一题水题,水下
//#pragma comment(linker, "/STACK:102400000,102400000")
#include
#include
#include
#include
#include
#include
#include ...
分类:
其他好文 时间:
2014-09-09 18:25:29
阅读次数:
210
题意:给定4个长度为N的字符串( N 2 #pragma comment(linker, "/STACK:102400000,102400000") 3 #define in freopen("F:\\rootial\\data\\data.txt", "r", stdin); 4 #def...
分类:
其他好文 时间:
2014-09-07 19:47:45
阅读次数:
288
response.setHeader("expires", "-1"); response.setHeader("cache-control", "no-cache"); response.setHeader("pragma", "no-chche"); ...
分类:
其他好文 时间:
2014-09-06 09:43:52
阅读次数:
211