码迷,mamicode.com
首页 >  
搜索关键字:while if else    ( 50281个结果
九度 1124
#include #include #include using namespace std; #ifdef ONLINE_JUDGE #define FINPUT(file) 0 #define FOUTPUT(file) 0 #else ...
分类:其他好文   时间:2014-05-12 14:12:35    阅读次数:379
九度 1105
#include #include #include using namespace std; #ifdef ONLINE_JUDGE #define FINPUT(file) 0 #define FOUTPUT(file) 0 #else ...
分类:其他好文   时间:2014-05-12 06:30:08    阅读次数:232
Objective-C中的BOOL和bool
BOOL t3=1024; if (t3) { NSLog(@"yes"); }else{ NSLog(@"no"); }输出:Test[1524:60b] notypedef signed char BOOL;BOOL 使用了一个8 位(一个字...
分类:其他好文   时间:2014-05-12 04:24:56    阅读次数:271
ajax(二)
ajaxXMLHttpRequest对象if (window.ActiveXObject) { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } else if (window.XMLHttpRequest) { xmlhttp = new X....
分类:其他好文   时间:2014-05-12 02:33:04    阅读次数:240
SRM620
A处理ab,处理cd。然后查找。比赛的时候用的DFS,爆栈了==vector > V[2];void deal(int x,int y,vector > &V){ while(x>0&&y>0) { V.push_back(make_pair(x,y)); i...
分类:其他好文   时间:2014-05-11 23:39:44    阅读次数:436
线性表操作练习
/*1、线性表练习(1)从给定顺序表A中删除元素值在x到y(x=x&&A[i]max) max=A[i]; else if(A[i]data=e; L->next=NULL; } else { if(i==1) ...
分类:其他好文   时间:2014-05-11 23:26:26    阅读次数:384
P?H?P?制?作?姓?名?、?学?号?。?爱?好?等?窗?口
if (radioButton1.Checked == true) textBox2.Text = 姓名: + textBox1.Text + 性别: + radioButton1.Text + 专业 + comboBox1.Text; else textBox2.Text = 姓名: + text...
分类:其他好文   时间:2014-05-11 16:58:29    阅读次数:199
《你必须知道的495个C语言问题》笔记--标准输入输出
getchar的返回值 这样的代码有什么问题: char c; while((c = getchar()) != EOF).... getchar返回值变量必须是int型。因为EOF通常定义为-1,二十进制为255的字符会被符号扩展,和EOF比较时会相等,从而 过早第结束输入。 feof函数的使用 为什么这些代码最后一行复制了两遍? #include #inclu...
分类:编程语言   时间:2014-05-11 06:22:53    阅读次数:422
poj 2456 二分法 最大化最小值
题目:http://poj.org/problem?id=2456 重新练习下二分法,发现还是手速不够 从这道题学到一下几点: 1、线性分几段的方法,看我的Judge()代码; 2、二分的while()最终打印的是down,而不是mid(我代码里写的是ans),或者up, 这么想:跳出循环的时候,假设while里的判断,Judge(ans)==1,那么down是正确解,up不是 Jud...
分类:其他好文   时间:2014-05-11 03:39:07    阅读次数:278
九度 1106
#include #include #include using namespace std; #ifdef ONLINE_JUDGE                                    #define FINPUT(file)  0 #define FOUTPUT(file) 0 #else                              ...
分类:其他好文   时间:2014-05-10 08:58:45    阅读次数:281
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!