
C语言学习
文章平均质量分 76
cassper
这个作者很懒,什么都没留下…
展开
-
Introduction
1 With the introduction of new devices and extended character sets, new features may beadded to this International Standard. Subclauses in the language and library clauses warnimplementors and program转载 2007-01-16 20:29:00 · 580 阅读 · 0 评论 -
解析#pragma指令
来源: http://dev.youkuaiyun.com/user/lithe在所有的预处理指令中,#Pragma 指令可能是最复杂的了,它的作用是设定编译器的状态或者是指示编译器完成一些特定的动作。#pragma指令对每个编译器给出了一个方法,在保持与C和C++语言完全兼容的情况下,给出主机或操作系统专有的特征。依据定义,编译指示是机器或操作系统专有的,且对于每个编译器都是不同的。其格式一般为:转载 2007-09-22 09:22:00 · 484 阅读 · 0 评论 -
安全过河问题
/*** 安全过河问题:* 三个商人各带一名随从准备过河,可是只有一只船,* 船上只能容纳两个人,并且在河的任何一岸,如果随从数目大于商人数,* 随从就会杀掉商人!问商人如何安全过河!**/#include int accrossriver(int i){ if ( 2 == i ) {原创 2008-06-11 20:38:00 · 1224 阅读 · 0 评论 -
循环队列
/*** 循环队列实现* chenbdchenbd@gmail.com*/#include #include #define RING_BUF_LEN (5)#define RING_BUF_OK (0x00)#define RING_BUF_NG (0xff)#define R原创 2008-06-12 19:47:00 · 545 阅读 · 0 评论 -
stack
/** * stack* chenbdchenbd@gmail.com**/#include #include #define STACK_BUF_LEN (5)#define STACK_OK (0x00)#define STACK_NG (0xff)//#define STAC原创 2008-06-12 19:49:00 · 534 阅读 · 0 评论 -
自己动手写的内存管理程序
/*** 自己动手写的内存管理程序* 完善中* chenbdchenbd@gmail.com**/#include #include #include #define MM_OK (0x00)#define MM_NG (0xff)#define MM_UNIT ((uns原创 2008-06-12 20:09:00 · 802 阅读 · 0 评论 -
自己动手写的内存管理程序Ver0.1
/*** menmory management module* chenbdchenbd@gmail.com**/#include #include #include #define MM_OK (0x00)#define MM_NG (0xff)#define MM_UNIT ((uns原创 2008-06-16 19:38:00 · 659 阅读 · 0 评论 -
自己动手写的内存管理程序
/*** menmory management module* chenbdchenbd@gmail.com**/#include #include #include #define MM_OK (0x00)#define MM_NG (0xff)#define MM_UNIT ((uns原创 2008-06-13 19:29:00 · 948 阅读 · 0 评论 -
简单的加法
int i=1; int j; j=(++i)+(++i)+(++i)+(++i); int i=1; int j; j=(++i)+(++i)+(i++)+(i++)+(++i);原创 2008-06-20 23:28:00 · 407 阅读 · 0 评论 -
6.3 Conversions
1 Several operators convert operand values from one type to another automatically. Thissubclause specifies the result required from such an implicit conversion, as well as thosethat result from a cast转载 2007-04-25 20:50:00 · 722 阅读 · 0 评论 -
5. Environment
5. Environment1 An implementation translates C source files and executes C programs in two dataprocessing-system environments, which will be called the translation environment andthe execution environ转载 2007-04-24 22:30:00 · 1164 阅读 · 0 评论 -
Programming Languages C (Ansi Iso Iec 9899 1999)___Foreword
Foreword1 ISO (the International Organization for Standardization) and IEC (the InternationalElectrotechnical Commission) form the specialized system for worldwidestandardization. National bodies that转载 2007-01-16 20:25:00 · 1560 阅读 · 0 评论 -
Terms, definitions, and symbols
3. Terms, definitions, and symbols1 For the purposes of this International Standard, the following definitions apply. Otherterms are defined where they appear in italic type or on the left side of a s转载 2007-01-16 20:34:00 · 688 阅读 · 0 评论 -
Scope && Normative references
1 This International Standard specifies the form and establishes the interpretation ofprograms written in the C programming language.1) It specifies— the representation of C programs;— the syntax and转载 2007-01-16 20:32:00 · 798 阅读 · 0 评论 -
Conformance
4. Conformance1 In this International Standard, ‘‘shall’’ is to be interpreted as a requirement on animplementation or on a program; conversely, ‘‘shall not’’ is to be interpreted as aprohibition.2 If转载 2007-01-16 20:36:00 · 743 阅读 · 0 评论 -
6. Language
6.1 Notation1 In the syntax notation used in this clause, syntactic categories (nonterminals) areindicated by italic type, and literal words and character set members (terminals) by boldtype. A colon转载 2007-04-25 20:40:00 · 604 阅读 · 0 评论 -
6.2 Concepts
6.2.1 Scopes of identifiers1 An identifier can denote an object; a function; a tag or a member of a structure, union, orenumeration; a typedef name; a label name; a macro name; or a macro parameter. T转载 2007-04-25 20:47:00 · 726 阅读 · 0 评论 -
6.4 Lexical elements
Syntax1 token:keywordidentifierconstantstring-literalpunctuatorpreprocessing-token:header-nameidentifierpp-numbercharacter-constantstring-literalpunctuatoreach non-white-space character that cannot be转载 2007-04-25 20:57:00 · 922 阅读 · 0 评论 -
6.5 Expressions
1 Anexpression is a sequence of operators and operands that specifies computation of avalue, or that designates an object or a function, or that generates side effects, or thatperforms a combination t转载 2007-04-25 20:59:00 · 617 阅读 · 0 评论 -
stack over flow
stack over flow原创 2010-09-02 21:54:00 · 2261 阅读 · 0 评论