随笔分类 - c/c++
摘要:#include #include #include #include #pragma warning(disable:4996)typedef struct HuffmanTree{ int weight;//权值 int parent;//父节点 int left;//左子树 ...
阅读全文
摘要:/* 2014年5月21日 10:01:09 位运算符和逻辑运算符 */ int i = 5, k = 21; // 位运算符:& 按位于 printf("%d\n", i&k);//5,分别把这个两个数的二进制对比。只有同位两个数都是1,那么该位就为1,否则为0;例如:1&0=0,0&...
阅读全文
摘要:#include "stdafx.h"#include //声明函数//创建一个链表struct Node * create_list(void);//遍历链表中的内容void traverse_list(struct Node *);//链表的结构体struct Node{ //数据域 int d...
阅读全文
浙公网安备 33010602011771号