Sweety

Practice makes perfect

导航

2014年8月4日

摘要: 注意结合queue的用法记忆 top()(注意这个在queue中没有,和queue中的front()一样) // priority_queue::top #include // std::cout #include // std::priority_queue ... 阅读全文

posted @ 2014-08-04 15:22 蓝空 阅读(187) 评论(0) 推荐(0) 编辑

摘要: long long 在Codeblocks 里可以正常的输入和输出,但是在VC里面就出问题了,会出现: binary '>>' : no operator defined which takes a right-hand operand of type '__int64' (or there i... 阅读全文

posted @ 2014-08-04 15:05 蓝空 阅读(2285) 评论(0) 推荐(0) 编辑

摘要: Description Farmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needs N (1 ≤ N ... 阅读全文

posted @ 2014-08-04 14:36 蓝空 阅读(181) 评论(0) 推荐(0) 编辑

2014年8月3日

摘要: Description Message queue is the basic fundamental of windows system. For each process, the system maintains a message queue. If something happe... 阅读全文

posted @ 2014-08-03 15:05 蓝空 阅读(158) 评论(0) 推荐(0) 编辑

2014年8月1日

摘要: Description Figure 1 Figure 1 shows a graphical representation of a binary tree of letters. People familiar with binary trees can skip over th... 阅读全文

posted @ 2014-08-01 14:07 蓝空 阅读(271) 评论(0) 推荐(0) 编辑

2014年7月31日

摘要: Description Little Valentine liked playing with binary trees very much. Her favorite game was constructing randomly looking binary trees with cap... 阅读全文

posted @ 2014-07-31 11:21 蓝空 阅读(222) 评论(0) 推荐(0) 编辑

摘要: 关于scanf返回值 检举 void main(){int a,b,c; c=scanf("%d %d",&a,&b); printf("%d",c); } 为什么我输入a 1 , c的值就为0,输入1 a,c的值为1 scanf返回接收到的变量值的个数。 ... 阅读全文

posted @ 2014-07-31 10:39 蓝空 阅读(169) 评论(0) 推荐(0) 编辑

2014年7月30日

摘要: Description Trees have many applications in computer science. Perhaps the most commonly used trees are rooted binary trees, but there are othe... 阅读全文

posted @ 2014-07-30 19:07 蓝空 阅读(487) 评论(0) 推荐(0) 编辑

摘要: 在使用这几个函数的时候,如果是让这几个的返回值直接和整数比较是没有问题的,但是如果是和一个负数比的话就出问题了,先看看下面这个例子: #include #include using namespace std; int main() { string a="abcd"; cout= a.le... 阅读全文

posted @ 2014-07-30 09:04 蓝空 阅读(381) 评论(0) 推荐(0) 编辑

2014年7月29日

摘要: POJ 2499 (简单二叉树) ... 阅读全文

posted @ 2014-07-29 20:13 蓝空 阅读(123) 评论(0) 推荐(0) 编辑