码迷,mamicode.com
首页 >  
搜索关键字:flag    ( 5253个结果
解决在非Activity中使用startActivity
错误提示信息: Caused by: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_.....
分类:其他好文   时间:2014-08-01 10:38:31    阅读次数:245
php的冒泡算法
0; $i--){ $flag = 0; //每一趟进行相邻两个数进行比较 for($j = 0; $j $arr[$j+1]){ $temp = $arr[$j]; $arr[$j] = $arr[$j+1]; $arr[$j+1] =$temp; $flag = 1...
分类:Web程序   时间:2014-07-31 20:38:57    阅读次数:197
素数判定
Problem Description对于表达式n^2+n+41,当n在(x,y)范围内取整数值时(包括x,y)(-39int main(){ int x,y,i,n,t,flag; while(scanf("%d%d",&x,&y)!=EOF&&(x!=0||y!=0))//又学会了一招·...
分类:其他好文   时间:2014-07-31 19:52:57    阅读次数:252
筛素数法小结
筛选素数方法小结: 最简单的筛素数法方法就是从2开始,将所以2的倍数去掉,然后从3开始,将3的倍数去掉,依次进行下去即可。根据这样很容易写出代码,下面代码就是是筛素数法得到100以内的素数并保存到primes[]数组中。 1 const int MAXN = 100; 2 bool flag[MA....
分类:其他好文   时间:2014-07-31 16:36:37    阅读次数:223
记录不同单词数目
#include #include int main(){char c,str[1000][1000],flag = 0,count; int x,y,i,j;while(1) { x = 0; y = 0;while((c = getchar() )!= '\n'){if (c == '#'){f...
分类:其他好文   时间:2014-07-31 12:41:36    阅读次数:246
PAT
#include #include using namespace std; int main(){ long a,b,c; int i,flag; bool is_positive; char result[9]; while(cin>...
分类:其他好文   时间:2014-07-31 02:38:15    阅读次数:215
HDU OJ 2159 FATE
#include #include int f[150][150] ;int w[150]; //»ñµÃ¾­Ñéint c[150]; //»¨·ÑµÄÈÌÄͶÈint main(){ int n, m, kk, s; int i, j, k; int flag, cc; ...
分类:其他好文   时间:2014-07-31 02:30:45    阅读次数:199
Android 窗体设置
requestWindowFeature(Window.FEATURE_NO_TITLE);getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCR...
分类:移动开发   时间:2014-07-30 20:29:54    阅读次数:192
Dom4j操作xml
boolean?flag?=?budgetCommon.createFolderFile("C:\\mfmis\\DefaulSetting\\DefaulBudgetorginConfig.xml");//"+format.format(new?Date())+" if(flag){//若返回为true,则代表此目录下的文件不存在,为第一次...
分类:其他好文   时间:2014-07-30 17:59:14    阅读次数:145
判断字符串中是否包含中文
public bool CheckChinese(string str) { bool flag = false; UnicodeEncoding a = new UnicodeEncoding(); byte[] b ...
分类:其他好文   时间:2014-07-30 17:22:23    阅读次数:223
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!