码迷,mamicode.com
首页 >  
搜索关键字:flag    ( 5253个结果
简单的数位dp
hdu 2089 设dp[len][flag],flag = 1表示前一位是6,否则前一位不是6. #include #include #include #include #include #include #include #include #include #include #include #include #include #define LL __i...
分类:其他好文   时间:2014-08-27 10:55:37    阅读次数:209
多线程 安全
单实例的时候, 我们为了处理线程安全1. 使用 双重判断 的synchronized2. 使用一个标志位 flag = true or false。 来处理安全。 但在理论上 这个还是不安全。 理论上安全的还是 双重判断的synchronized
分类:编程语言   时间:2014-08-26 11:19:25    阅读次数:178
56 主子线程循环执行
public class Demo { public static Object o = new Object(); public static boolean flag = true; public static void main(String[] args) { ...
分类:编程语言   时间:2014-08-26 01:45:05    阅读次数:242
会计期间勿关闭后台打开
会计期间误关闭后需要从新打开需要做一下几个步骤 SELECT acct_period_id period, open_flag, period_name name, period_start_date, schedule_close_date, period_close_date FROM org_acct_periods WHERE organization_id = &org_id ...
分类:其他好文   时间:2014-08-26 00:33:45    阅读次数:302
820 C语言 作业
#include void main(){ int i,j; int code=0,flag=0; int choice1=0,choice2=0,choice3=0; int RMB=100000,WB=100000; int cash1=0,cash2=0; ...
分类:编程语言   时间:2014-08-25 20:50:44    阅读次数:194
shell 脚本参数
linux中shell变量$#,$@,$0,$1,$2的含义解释:变量说明:$$Shell本身的PID(ProcessID)$!Shell最后运行的后台Process的PID$?最后运行的命令的结束代码(返回值)$-使用Set命令设定的Flag一览$*所有参数列表。如"$*"用「"」括起来的情况、以"$1$2…$n"的形式输出所有参数。$@所有..
分类:其他好文   时间:2014-08-25 19:32:15    阅读次数:262
Android锁屏状态下弹出activity
在接收消息广播的onReceive里,跳转到你要显示的界面。如: Intent intent = new Intent(arg0,MainActivity.class); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); arg0.startActivity(intent); 在该activity的onCreate()方法里: ...
分类:移动开发   时间:2014-08-25 13:26:54    阅读次数:297
android 打开指定包名的apk
例如: 系统音乐 Intent intent = new Intent(Intent.ACTION_MAIN); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.addCategory(Intent.CATEGORY_LAUNCHER); ComponentName cn = new ComponentName("com.an...
分类:移动开发   时间:2014-08-24 23:55:03    阅读次数:258
备战ACM烂摊子
problem A#includeint a[500]={0};//素数大表 int main(){ int number; int anumber=0; int i=0; int flag=0; while(scanf("%d",&number)!=EOF) { if(anumber==0) .....
分类:其他好文   时间:2014-08-24 19:12:03    阅读次数:162
python-re模块
python re模块中的用法:1,compile: re.compile(strPattern[, flag])pattern=re.compile(r"(.*?)")得到的是一个pattern对象,属性有:pattern: 编译时用的表达式字符串。flags: 编译时用的匹配模式。数字形式。gr...
分类:编程语言   时间:2014-08-24 16:39:02    阅读次数:308
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!