C/C++
文章平均质量分 83
ehui928
这个作者很懒,什么都没留下…
展开
-
C/C+语言struct深层探索(zz)
C/C+语言struct深层探索(zz)1. struct的巨大作用 面对一个人的大型C/C++程序时,只看其对struct的使用情况我们就可以对其编写者的编程经验进行评估。因为一个大型的C/C++程序,势必要涉及一些(甚至大量)进行数据组合的结构体,这些结构体可以将原本意义属于一个整体的数据组合在一起。从某种程度上来说,会不会用struct,怎样用struct是区别一个开发人员是否具备丰富开发转载 2005-12-07 20:50:00 · 5535 阅读 · 0 评论 -
Bit Counting函数源代码
/* ========================================================================== Bit Counting routines Author: Gurmeet Singh Manku (manku@cs.stanford.edu) Date: 27 Aug 2002 ==翻译 2006-08-02 16:43:00 · 1784 阅读 · 0 评论 -
C++资源之不完全导引(完整版)
【转载】C++资源之不完全导引(完整版)C++资源之不完全导引(完整版)来源:www.csdn.net撰文:曾毅、陶文声明:本文2004年5月首发于《CSDN开发高手》,版权归该杂志与《程序员》杂志社所有。-------------------------------------------------------------------------------- 1,前言 无数次听到“我要开转载 2006-07-31 21:35:00 · 1352 阅读 · 0 评论 -
counting 1 bits SPOILER
counting 1 bits SPOILERThis spoiler/nodeshell rescue is in reference to Arielss writeup in "counting 1 bits."Sick of staring at that ampersand? Bitter at binary? Lets start by reviewing the give转载 2006-07-31 21:45:00 · 1126 阅读 · 0 评论 -
计算整数中1的个数的C语言实现
counting 1 bits C implementationshttp://www.everything2.com/index.pl?node_id=1181258Here are C implementations of all the methods for counting 1 bits mentioned in that node. (Go read that first,转载 2006-07-29 08:08:00 · 3524 阅读 · 0 评论 -
代码静态分析工具PC-LINT安装配置--step by step
代码静态分析工具PC-LINT安装配置--step by step 作者:ehui928 2006-5-20 PC-Lint是C/C++软件代码静态分析工具,你可以把它看作是一种更加严格的编译器。它不仅可以检查出一般的语法错误,还可以检查出那些虽然符合语法要原创 2006-05-20 12:40:00 · 12682 阅读 · 16 评论 -
Working with Packing Structures -----MSDN
Working with Packing Structures Problems can occur when a structure requires more bytes than the programmer intended, especially when space requirements are paramount. Structure Packing and Align转载 2006-09-19 14:29:00 · 1330 阅读 · 0 评论 -
Structure Packing
Structure Packing Posted by: Russ KeldorphStructure packing is an extenstion to the C++ language supported by many compilers, including Microsofts. In our language, packing is achieved with转载 2006-09-19 14:35:00 · 1504 阅读 · 0 评论 -
10年编程无师自通
原文:Teach Yourself Programming in Ten Years作者:Peter Norvighttp://www.norvig.com/21-days.html翻译:郭晓刚(foosleeper@163.net)最后修订日期:2004-3-192005-01-12增加了新的译本链接。本中文译本得到了Peter Norvig的许可。为什么每个人都急不可耐?走进任何一转载 2006-04-07 12:38:00 · 1514 阅读 · 0 评论 -
堆和栈的区别
堆和栈的区别一、预备知识—程序的内存分配一个由c/C++编译的程序占用的内存分为以下几个部分1、栈区(stack)— 由编译器自动分配释放 ,存放函数的参数值,局部变量的值等。其操作方式类似于数据结构中的栈。2、堆区(heap) — 一般由程序员分配释放, 若程序员不释放,程序结束时可能由OS回收 。注意它与数据结构中的堆是两回事,分配方式倒是类似于链表,呵呵。3、全局区(静态区)(static)转载 2006-03-19 21:17:00 · 906 阅读 · 0 评论 -
C struct 中字节对齐问题
VC中下面几个结构体大小分别是多少呢struct MyStruct { double m4; char m1; int m3; }; struct MyStruct { char m1; double m4; int m3; }; #pragma pack(push)//保存对齐状态 #p转载 2005-12-07 20:54:00 · 8742 阅读 · 0 评论 -
C/C++语言void及void指针深层探索(转载)
C/C++语言void及void指针深层探索 作者:宋宝华 1.概述 许多初学者对C/C++语言中的void及void指针类型不甚理解,因此在使用上出现了一些错误。本文将对void关键字的深刻含义进行解说,并详述void及void指针类型的使用方法与技巧。 2.void的含义 void的字面意思是“无类型”,void *则为“无类型指针”,void *可以指向任转载 2005-12-07 20:51:00 · 2586 阅读 · 1 评论