#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
#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
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
ajaxXMLHttpRequest对象if (window.ActiveXObject) {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } else if
(window.XMLHttpRequest) { xmlhttp = new X....
分类:
其他好文 时间:
2014-05-12 02:33:04
阅读次数:
240
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
if (radioButton1.Checked == true) textBox2.Text =
姓名: + textBox1.Text + 性别: + radioButton1.Text + 专业 + comboBox1.Text; else
textBox2.Text = 姓名: + text...
分类:
其他好文 时间:
2014-05-11 16:58:29
阅读次数:
199
getchar的返回值
这样的代码有什么问题:
char c;
while((c = getchar()) != EOF)....
getchar返回值变量必须是int型。因为EOF通常定义为-1,二十进制为255的字符会被符号扩展,和EOF比较时会相等,从而
过早第结束输入。
feof函数的使用
为什么这些代码最后一行复制了两遍?
#include
#inclu...
分类:
编程语言 时间:
2014-05-11 06:22:53
阅读次数:
422
题目: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
#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