![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c/c++
文章平均质量分 80
efiish
这个作者很懒,什么都没留下…
展开
-
STL List Container
The Standard Template Librarys list container is implemented as a doubly linked list. You might wonder why there are both list and vector containers in the STL -- the reason is that the underlying re转载 2005-12-10 14:21:00 · 1142 阅读 · 1 评论 -
Bubble sort
Have an array you need to put in order? Keeping business records and want to sort them by ID number or last name of client? Then youll need a sorting algorithm. To understand the more complex and eff转载 2005-12-11 16:37:00 · 964 阅读 · 0 评论 -
Windows消息
Windows消息目录1. WM_NULL=$0000:2. WM_CREATE=$0001: 应用程序创建一个窗口3. WM_DESTROY=$0002: 一个窗口被销毁4. WM_MOVE=$0003: 移动一个窗口5. WM_SIZE=$0005:改变一个窗口的大小6. WM_ACTIVATE=$0006: 一个窗口被激活或失去激活状态;7. WM_SETFOCUS=$0007:转载 2005-12-16 20:29:00 · 865 阅读 · 0 评论 -
8086/8088汇编语言指令集
数据传送指令集MOV功能: 把源操作数送给目的操作数语法: MOV 目的操作数,源操作数格式: MOV r1,r2MOV r,mMOV m,rMOV r,dataXCHG功能: 交换两个操作数的数据语法: XCHG格式: XCHG r1,r2 XCHG m,r XCHG r,mPUSH,POP功能: 把操作数压入或取出堆栈语法: PUSH 操作数 POP 操作数格式: PUSH r PUSH M转载 2006-02-12 14:36:00 · 2126 阅读 · 0 评论 -
保护模式基础
保护模式基础 作者:Robert Collins 臭翻:colyli 我记得当我第一次学习保护模式的时候,我刚刚自学完了汇编语言,于是我就有了一个疯狂的念头——自学保护模式。我买了一本包括保护模式示例的80286汇编语言教材,然后就开始学习了。没过几个小时,我意识到我买的书里没有任何有用的示例,因为书里的例子是介绍如何EPROM CHIPS编程的。因此我将那个误导我买此书的海报痛打了一顿。 直到现转载 2006-03-30 17:43:00 · 2106 阅读 · 0 评论 -
Linux个人防火墙设计与实现-数据包捕获
摘 要 防火墙是网络安全研究的一个重要内容,数据包捕获是包过滤型防火墙的前提,本文对基于Linux主机的个人防火墙的数据包捕获模块进行了研究,重点论述数据包捕获模块的结构、组成以及功能。首先对信息安全及防火墙的重要性进行论述,并给出防火墙的详细分类;然后分析了基于Linux主机的个人防火墙总体设计及软硬件平台原理,接着论述Linux下的数据包捕获模块结构与原理,并详述其具体实现步骤。 关键词转载 2006-04-03 14:00:00 · 3313 阅读 · 1 评论 -
linux socket
Linux环境下的Socket编程发布于2005-05-28 被读24815次 【字体:大 中 小】 什么是Socket Socket接口是TCP/IP网络的API,Socket接口定义了许多函数或例程,程序员可以用它们来开发TCP/IP网络上的应用程序。要学Internet上的TCP/IP网络编程,必须理解Socket接口。转载 2006-04-08 12:52:00 · 1477 阅读 · 0 评论 -
makefile
GNU make 和 makefile GNU make makefile 基本结构 makefile 变量 GNU make 的主要预定义变量 隐含规则 makefile 范例 运行 make 1.9.1 GNU make 在大型的开发项目中,通常有几十到上百个的源文件,如果每次均手工键入 gcc 命令进行编译的话,则会 非常不方便。因此,人们通常利用 make 工具来自动完成编译工作。这些工转载 2006-04-09 15:16:00 · 1244 阅读 · 0 评论 -
Selection sort
Selection sort is the most conceptually simple of all the sorting algorithms. It works by selecting the smallest (or largest, if you want to sort from big to small) element of the array and placing it转载 2005-12-11 16:36:00 · 953 阅读 · 0 评论 -
Using Namespaces
One of C++s less heralded additions is addition of namespaces, which can be used to structure a program into "logical units". A namespace functions in the same way that a company division might funct转载 2005-12-10 19:00:00 · 842 阅读 · 0 评论 -
Quicksort
by Jakub Bomba (axon) When deciding on the best sorting algorithm we often look at its worst-case running time, and base our decision solely on that factor. That is why beginning programmers often ove转载 2005-12-11 16:40:00 · 1104 阅读 · 0 评论 -
STL Iterators
The concept of an iterator is fundamental to understanding the C++ Standard Template Library (STL) because iterators provide a means for accessing data stored in container classes such a vector, map,转载 2005-12-10 14:22:00 · 1048 阅读 · 0 评论 -
Lesson 15: Singly linked lists (Printable Version)
Linked lists are a way to store data with structures so that the programmer can automatically create a new place to store data whenever necessary. Specifically, the programmer writes a struct or class转载 2005-12-11 16:31:00 · 857 阅读 · 0 评论 -
Merge Sort
Merge sort is the second guaranteed O(nlog(n)) sort well look at. Like heap sort, merge sort requires additional memory proportional to the size of the input for scratch space, but, unlike heap sort,转载 2005-12-11 16:33:00 · 1494 阅读 · 0 评论 -
C++中extern “C”含义深层探索
C++语言的创建初衷是“a better C”,但是这并不意味着C++中类似C语言的全局变量和函数所采用的编译和连接方式与C语言完全相同。作为一种欲与C兼容的语言,C++保留了一部分过程式语言的特点(被世人称为“不彻底地面向对象”),因而它可以定义不属于任何类的全局变量和函数。但是,C++毕竟是一种面向对象的程序设计语言,为了支持函数的重载,C++对全局函数的处理方式与C有明显的不同。 2.转载 2005-12-07 20:14:00 · 756 阅读 · 0 评论 -
C宏--智者的利刃,愚者的恶梦
水平不高不低的C++程序员最喜欢挂在嘴上的一句话就是:C宏,万恶之首,错误的开端,应该被废弃。 请注意,我用了一句不敬的修饰语“水平不高不低的”。为什么这么说?因为水平低都插不上话,都在在静静地听老前辈布道呢。水平高的,比如Bane Stroustrup老人家,也只是说若干种场合下C++语言能够提供比C macro更好的解决方案,而没有完全否定C macro的价值。但是话就怕传来传去,一传就转载 2005-12-07 20:15:00 · 976 阅读 · 1 评论 -
The C++ String Class
C++ provides a simple, safe alternative to using char*s to handle strings. The C++ string class, part of the std namespace, allows you to manipulate strings safely.<!--google_ad_client = "pub-2560转载 2005-12-10 14:18:00 · 1639 阅读 · 0 评论 -
The STL Vector Class
One of the basic classes implemented by the Standard Template Library is the vector class. A vector is, essentially, a resizeable array; the vector class allows random access via the [] operator, but转载 2005-12-10 14:19:00 · 1337 阅读 · 0 评论 -
STL Maps -- Associative Arrays
Suppose that youre working with some data that has values associated with strings -- for instance, you might have student usernames and you want to assign them grades. How would you go about storing转载 2005-12-10 14:21:00 · 962 阅读 · 0 评论 -
Heap Sort
Weve already looked at several O(n^2) sorting algorithms, bubble sort and selection and insertion sort. Now we turn to faster sorting algorithms that can sort in time proportional to O(n*log(n)) in t转载 2005-12-11 16:35:00 · 1080 阅读 · 0 评论 -
Makefile的编写指导(一)
Makefile的编写指导(一) 【打印】 发表时间:2005-8-25 发布人:yhj6688 阅读次数:1530 概述——什么是makefile?或许很多Winodws的程序员都不知道这个东西,因为那些Windows的 IDE都为你做了这个工作转载 2006-04-09 15:18:00 · 1351 阅读 · 0 评论