
c++
f_xd
简约不简单
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
vs2005调试
下面有从浅入深的6个问题,您可以尝试回答一下一个如下的语句for (int i = 0; i 在一个1000次的循环体内部设置断点,你希望当循环进行到900次后中断,怎么才能做到呢?你有一个表达式在上面循环的某一次发生了变化,你想知道是哪一次,在哪个地方,怎么才能做到?你希望你的转载 2011-07-14 09:50:22 · 129 阅读 · 0 评论 -
snake_c
#if 1#include#include#include#include#include#include#includeusing namespace std;/////////////////////////////////////////////////////////////全局变量////////////////////////原创 2011-08-26 13:18:01 · 424 阅读 · 0 评论 -
双链表
////////////////////////////////////////////////////////////////////////////////////双链表简介/////////////////////////////////////////////////////////////////////////////////双链表1、双向链表(Double原创 2011-08-26 13:15:49 · 732 阅读 · 0 评论 -
MD5
原文http://www.ietf.org/rfc/rfc1321.txt3. MD5 Algorithm Description We begin by supposing that we have a b-bit message as input, an转载 2011-08-24 11:08:09 · 507 阅读 · 0 评论 -
状态机简单实现_1
状态机代码备份第一次参考网上的例子写个状态机感觉也没什么东西开始以为多神秘其实就是,switch-case语句#include #include #include using namespace std;typedef enum{ state0原创 2011-07-12 11:21:59 · 456 阅读 · 0 评论 -
十进制小数转化成二进制
1)若十进制数据为 137.625,则其二进制数为( )。 A.10001001.11 B.10001001.101 C.10001011.101 D.1011111.101 求解: 十进制数转化为二进制数时,整数部分和小数部分要用不同的方法来处理。原创 2011-09-08 00:32:37 · 1507 阅读 · 0 评论 -
快速排序
int Partition(SeqList R,int i,int j) {//调用Partition(R,low,high)时,对R[low..high]做划分, //并返回基准记录的位置 ReceType pivot=R[i]; //用区间原创 2011-09-05 17:02:33 · 342 阅读 · 0 评论 -
Hash Table
数据结构:hash_map原理 这是一节让你深入理解hash_map的介绍,如果你只是想囫囵吞枣,不想理解其原理,你倒是可以略过这一节,但我还是建议你看看,多了解一些没有坏处。hash_map基于hash table(哈希表)。哈希表最大的优点,就是把数据的存储和查找消耗转载 2011-08-24 11:06:08 · 2306 阅读 · 0 评论 -
单例模式
1. 特点:保证一个类仅有一个实例,并提供一个访问它的全局访问点。单例类可以继承2. 实际应用:如一个工程中,数据库访问对象只有一个,这时,可以考虑使用原创 2011-09-01 14:39:29 · 409 阅读 · 0 评论 -
函数指针.回调函数
//// main.cpp// CTest//// Created by fengshaobo on 13-4-2.// Copyright (c) 2013年 fengshaobo. All rights reserved.//#include #include #include #include "sort.h"using namespace std;/原创 2013-09-07 14:49:24 · 643 阅读 · 0 评论