- 博客(3)
- 资源 (14)
- 收藏
- 关注
原创 中缀表达式转后缀表达式求值
笔试出这道题出了好几次了, 总是写不好,还是得好好准备啊。参考百度百科,但是那里不是写的太好,改进了一些, 并没有改完。等有时间再改改。// Test0.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include #include #include #
2013-12-26 23:03:25 1843
原创 堆排序--算法导论
#include "stdafx.h"#include #include #include #include #include #include using namespace std;#define SIZE 10//维持堆的性质(假设i的左右两支已经符合大堆的性质)void MaxHeapify(int data[], int index, in
2013-12-25 15:34:31 1281
原创 一道“简单”的笔试题 (c /c++ ,汇编)
bool z ; int a = 1; int b = 2; int c = 1; z = a && b || ++c; cout问输出z, c的值。 直接得到了 1, 2. 但是结果错了。 为什么, 自己以为答案给错了呢, 一直纠结了好几天了,决心用程序看看。 bool z ; int a = 1;
2013-12-16 16:34:46 1244
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人