Indent and Format C Program Source(indent manual)
This is Edition 2.2.10 of `The `indent' Manual', for Indent Version
2.2.10, last updated 23 July 2008.
Copyright (C) 1989, 1992, 1993, 1994, 1995, 1996 Free Software
Foundation, Inc. Copyright (C) 1995, 1996 Joseph Arceneaux. Copyright
(C) 1999 Carlo Wood. Copyright (C) 2001 David Ingamells.
Permission is granted to make and distribute verbatim copies of this
manual provided the copyright notice and this permission notice are
preserved on all copies.
`indent': Indent and Format C Program Source
*********************************************
The `indent' program changes the appearance of a C program by inserting
or deleting whitespace.
This is Edition 2.2.10, 23 July 2008, of `The `indent' Manual', for
Indent Version 2.2.10.
1 The `indent' Program
**********************
The `indent' program can be used to make code easier to read. It can
also convert from one style of writing C to another.
`indent' understands a substantial amount about the syntax of C, but it
also attempts to cope with incomplete and misformed syntax.
In version 1.2 and more recent versions, the GNU style of indenting
is the default.
1.1 Invoking `indent'
=====================
As of version 1.3, the format of the `indent' command is:
indent [OPTIONS] [INPUT-FILES]
indent [OPTIONS] [SINGLE-INPUT-FILE] [-o OUTPUT-FILE]
This format is different from earlier versions and other versions of
`indent'.
In the first form, one or more input files are specified. `indent'
makes a backup copy of each file, and the original file is replaced with
its indented version. *Note Backup files::, for an explanation of how
backups are made.
In the second form, only one input file is specified. In this case,
or when the standard input is used, you may specify an output file after
the `-o' option.
To cause `indent' to write to standard output, use the `-st' option.
This is only allowed when there is only one input file, or when the
standard input
相关文档:
为循环控制,它可以将集合(Collection)中的成员循序浏览一遍。运作方式为当条件符合时,就会持续重复执行的本体内容。
为循环控制,它可以将集合(Collection)中的成员循序浏览一遍。运作方式为当条件符合时,就会持续重复执行的本体内容。
语法
语法1:迭代一集合对象之所有成员
<c:forEac ......
const 是在程序中非常重要。在这里我做一下简单的介绍。
1.const 基础
const有两种形式:
a) const Type var;
如:int a =10;const int * var=&a; 那么var就是常量指针,表明是指向常量的指针,也就是说a的值不能改变。
......
链表中有两个关键的操作:创建和删除。今天我就对这两个操作进行介绍,
从这两个操作中学习到链表的基本用法。
1. Create
Create() 是一个链表基础,只有建立好链表才能对它进行相应的查找,删除 等。
基本算法:
1.初始化
head=NULL;
......
一. 在c中分为这几个存储区
1.栈 - 由编译器自动分配释放
2.堆 - 一般由程序员分配释放,若程序员不释放,程序结束时可能由OS回收
3.全局区(静态区),全局变量和静态变量的存储是放在一块的,初始化的全局变量和静态变量在一块区域,未初始化的全局变量和未初始化的静态变量在相邻的另一块区域。- 程序结束释放
4.另� ......
1.
引言
C++
语言的创建初衷是“a better C”
,但是这并不意味着C++
中类似C
语言的全局变量和函数所采用的编译和连接方式与C
语言完全相同。作 为一种欲与C
兼容的语言,C++
保留了一部分过程式语言的特点(被世人称为“
不彻底地面向对象”
),因而它可以定义不属于 ......