1 /** 2 设置关闭窗口之后点击Dock中的图标可以再次打开窗口 3 */ 4 -(BOOL)applicationShouldHandleReopen:(NSApplication *)sender hasVisibleWindows:(BOOL)flag 5 { 6 if...
分类:
系统相关 时间:
2014-11-04 14:35:11
阅读次数:
183
CREATE FUNCTION D_ByteExchangeS_Byte(@str NVARCHAR(4000), --要转换的字符串@flag bit --转换标志,0转换成半角,1转换成全角)RETURNS nvarchar(4000)ASBEGIN DECLARE @pat nvarchar(...
分类:
数据库 时间:
2014-11-04 12:52:58
阅读次数:
173
1 #include 2 #include 3 #include 4 using namespace std; 5 struct bign{ 6 int len; 7 int num[1501]; 8 bool flag; 9 bign(){len=1;flag=0...
分类:
其他好文 时间:
2014-11-04 08:04:58
阅读次数:
177
终于会了,233 1 #include 2 #include 3 #include 4 using namespace std; 5 struct bign 6 { 7 int len; 8 int num[1501]; 9 bool flag; 10 ...
分类:
其他好文 时间:
2014-11-03 20:36:53
阅读次数:
281
Activity有四种启动模式:1.standard(标准) 2.singleTop 3.singleTask 4.singleInstance标识某个Activity的启动模式,有两种方式:1.一种是通过AndroidManifest.xml 2.一种是通过Intent的标识通过AndroidMa...
分类:
其他好文 时间:
2014-11-02 17:49:49
阅读次数:
272
这个问题很容困扰,一般有以下几个方案
进入target的 Build Phases- Link binary Library,找到libPods.a,如果是红色的,删除,即可
其他解决方案
Build Setting > Other Linker Flag:
Try to change wherever $(TARGET_BUILD_DIR) to $(BUILT_PRODUCTS...
分类:
其他好文 时间:
2014-11-01 23:19:24
阅读次数:
241
1,mount命令各个参数的含义mount命令各个参数含义2,mount系统调用中flag参数的含义#define MS_RDONLY 1 /* Mount read-only */#define MS_NOSUID 2 /* Ignore suid and sgid bits */#define ...
分类:
其他好文 时间:
2014-11-01 23:07:15
阅读次数:
299
void CMFC_CORE_1Dlg::GetModule(){ HMODULE hmodule = NULL; GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS,(PCTSTR)GetModule,&hmodule); TRACE(...
分类:
其他好文 时间:
2014-11-01 21:39:47
阅读次数:
269
public class Guess { public static boolean isPrime(int i) { // 判断参数i是否是素数,是则返回true反之则返回false int n; boolean flag = true; if (1 == i) // 1本身不是素数,因此需把这个特殊的数字抛出 flag = false; for (n = 2; n <= i - 1; n++)...
分类:
其他好文 时间:
2014-11-01 13:35:32
阅读次数:
177
一、线性筛法众所周知。。。线性筛就是在O(n)的时间里找出所有素数的方法code:void get_prime(int N){ int i, j, k; memset(Flag, sizeof(Flag), 0); for (i = 2; i N) break; ...
分类:
其他好文 时间:
2014-11-01 13:25:26
阅读次数:
152