C/C++头文件一览
C/C++
头文件一览
//////////////////////////////////////////////////////////////////////////
C
头文件
(C89,C95)
(C++98,C++03也包含)
include <assert.h> //诊断库
include <ctype.h> //字符处理函数库
include <errno.h> //错误定义
include <float.h> //浮点数处理
include <iso646.h> //对应各种运算符的宏
include <limits.h> //定义各种数据类型最值的常量
include <locale.h> //定义本地化C函数
include <math.h> //定义数学函数
include <setjmp.h> //异常处理支持
include <signal.h> //信号机制支持
include <stdarg.h> //可变参数列表支持
include <stddef.h> //常用常量
include <stdio.h> //定义输入/输出函数
include <stdlib.h> //定义杂项函数及内存分配函数
include <string.h> //字符串处理
include <time.h> //定义关于时间的函数
include <wchar.h> //宽字符处理及输入/输出
include <wctype.h> //宽字符分类
--------------------------------------------
C
头文件
(C99增加)
#include
<complex.h>
//
复数处理
#include
<fenv.h>
//
浮点环境
#include
<inttypes.h>
//
整数格式转换
#include
<stdbool.h>
//
布尔环境
#include
<stdint.h>
//
整型环境
#include
<tgmath.h>
//
通用类型数学宏
//////////////////////////////////////////////////////////////////////////
传统
C++
头文件
(C++98
之前)
include
<fstream.h> //改用<fstream>
include
<iomanip.h> //改用<iomainip>
include
<iostream.h> //改用<iostream>
include
<strstrea.h> //该类不再支持,改用<sstream>中的stringstream
------
相关文档:
http://en.wikipedia.org/wiki/C_preprocessor
C preprocessor
from Wikipedia, the free encyclopedia
Jump to:navigation, search
The C preprocessor (cpp) is the preprocessor for the C programming language. In many C implementations, it is a separate program invoked by the compiler as the first part ......
例) 危険なコーディング
1 char cStr[256];
2 ZeroMemory(cStr, sizeof(cStr));
3 &nb ......
1) goto
goto 只能在一个函数内跳转。建议少用,使得程序维护起来容易出错;但是,在有多个循环情况下跳转,有时用goto可以使得问题变得简单。
class A
{
public:
A(){}
~A(){}
};
&nbs ......
Linux/UNIX C++高级培训---远程班
http://www.xuanyuan-soft.cn/index.php?option=com_content&view=article&id=84&Itemid=85
课程概要
培养目标
:Linux/UNIX C++软件工程师
专注Linux/UNIX服务器端的软件开发(后台开发),培养企业所需的专业Linux/UNIX C ......
把输入的一串字符转成数组,转成链表,然后删去其中指定的字符,在尾部添加一个字符。
(程序还不完善,没有对输错的情况进行处理,,暂时先这样吧。。= =。)
#include<stdio.h>
#include<malloc.h>
#define LEN sizeof(struct link)
struct link
{
char ch;
struct link *next;
}*string;
char a ......