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
------
相关文档:
好久以前做的一个程序,贪心策略实现背包问题,c实现。
总结在这里,以备以后和别人查找。
//背包问题
#include "stdio.h"
#define MAX 10
void main()
{
int w[MAX]={0,10,130,15,60,25}; //存放质量
int v[MAX]={0,30,5,10,20,25}; //存放价值
flo ......
1:在StaAfx.h 中添加如下代码 #import "C:\\Program Files\\Common Files \\System\\ado\\msado15.dll" no_namespace rename("EOF","adoEOF")rename("BOF","adoBOF")
2:在BOOL CXXXApp::InitInstance()中初始化COM环境
::CoInitialize(NULL);
释放COM环境
::CoUninitialize();
......
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 ......
oracle中pro*c的学习
一 Pro*C 程序概述:
1.什么是Pro*C程序
在ORACLE数据库管理和系统中, 有三种访问数据库的方法;
(1) 用SQL*Plus, 它有SQL命令以交互的应用程序访问数据库;
(2) 用第四代语言应用开发工具开发的应用程序访问数据库,这些工具有SQL*froms,QL*Reportwriter,SQL*Menu等;
(3) 利用在 ......
1) goto
goto 只能在一个函数内跳转。建议少用,使得程序维护起来容易出错;但是,在有多个循环情况下跳转,有时用goto可以使得问题变得简单。
class A
{
public:
A(){}
~A(){}
};
&nbs ......