// int array[] = {3, 2, 6, 9, 8, 5, 7, 1, 4}; // int count = sizeof(array) / sizeof(array[0]); // int flag = 1; // for (int i = 0; i array[j ...
分类:
其他好文 时间:
2014-08-19 00:54:43
阅读次数:
186
HDU Poor Hanamichi
题目链接
思路:直接从l往上找判断即可
代码:
#include
#include
#include
#include
using namespace std;
typedef long long ll;
int t;
ll l, r;
bool judge(ll num) {
ll flag = 1;
l...
分类:
其他好文 时间:
2014-08-17 22:49:22
阅读次数:
238
xcode引入第三方静态类库 duplicate symbol _OBJC_XXX 重复编译错误一:场景 xcode 同时引入了 libA.a, libB.a 两个静态类库,如果 这两个静态类库之中,都打包了,相同的库,方法之类的, 且 xcode 的other link flag 为 -a...
分类:
其他好文 时间:
2014-08-17 15:26:32
阅读次数:
173
1. 打开动态链接库: #include void *dlopen(const char *filename, int flag); 该函数返回操作句柄,如: void *pHandle = dlopen(strSoFilePath, RTLD_LAZY);2. 取动态对象地址: #include....
分类:
其他好文 时间:
2014-08-16 19:42:30
阅读次数:
155
//设置窗体全屏getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);//设置窗体始终点亮getWindow().setFlags(Wi...
分类:
移动开发 时间:
2014-08-16 19:38:20
阅读次数:
418
变量说明:
$$
Shell本身的PID(ProcessID)
$!
Shell最后运行的后台Process的PID
$?
最后运行的命令的结束代码(返回值)
$-
使用Set命令设定的Flag一览
$*
所有参数列表。如"$*"用「"」括起来的情况、以"$1 $2 … $n"的形式输出所有参数。
$@
所有参数列表。如"$@"用「"」括起来的情况、以"$1" "$2" …...
分类:
其他好文 时间:
2014-08-16 12:38:10
阅读次数:
184
#region 生成并返回 json 结果文件/// /// 生成并返回 json 结果文件/// /// 主内容/// 其它参数/// 标志/// 结果/// public static string BackJson(string flag, string json, string mess){...
分类:
Web程序 时间:
2014-08-15 19:18:59
阅读次数:
179
通知栏 设置提醒标志符Flags功能:提醒标志符,向通知添加声音、闪灯和振动效果等设置达到通知提醒效果,可以组合多个属性使用方法(其一):Notification notify = mBuilder.build();notify.flags = Notification.FLAG_AUTO_CANC...
分类:
移动开发 时间:
2014-08-15 19:13:19
阅读次数:
2231
Intent intent1 = getIntent();
overridePendingTransition(0, 0);
intent1.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
finish();
overridePendingTransition(0, 0);
startActivity(intent1);
...
分类:
移动开发 时间:
2014-08-15 14:40:18
阅读次数:
224
1 #include "timerHz.h" 2 #include "msp430g2553.h" 3 4 #define _DEBUG_TIMERHZ_ 5 6 unsigned int capArray[16] = {0}; 7 unsigned char index = 2, flag ...
分类:
其他好文 时间:
2014-08-14 16:10:28
阅读次数:
277