附錄C.doc



Similar documents
C

C/C++ - 文件IO

新・明解C言語入門編『索引』

新版 明解C言語入門編

epub 33-8

新・解きながら学ぶC言語

WINAVR 中文教程

<4D F736F F D20B5DA31D5C220C7B6C8EBCABDD3A6D3C3B3CCD0F2C9E8BCC6D7DBBACFBDCCB3CC2E646F63>

untitled

C/C++ - 函数

Microsoft Word - 把时间当作朋友(2011第3版)3.0.b.06.doc


Microsoft PowerPoint - 07_IO.ppt

C/C++程序设计 - 字符串与格式化输入/输出

新版 明解C++入門編

CC213

int *p int a 0x00C7 0x00C7 0x00C int I[2], *pi = &I[0]; pi++; char C[2], *pc = &C[0]; pc++; float F[2], *pf = &F[0]; pf++;

CC213

Microsoft PowerPoint - w22

程序 14-9 linux/include/string.h 1 #ifndef _STRING_H_ 2 #define _STRING_H_ 3 4 #ifndef NULL 5 #define NULL ((void *) 0) 6 #endif 7 8 #ifndef _SIZE_T 9 #

プログラムの設計と実現II

实际问题 : 1 职工信息管理系统 2 学生选课系统 3 飞机订票系统 4 图书信息管理系统 5 图象处理

威 福 髮 藝 店 桃 園 市 蘆 竹 區 中 山 里 福 祿 一 街 48 號 地 下 一 樓 50,000 獨 資 李 依 純 105/04/06 府 經 登 字 第 號 宏 品 餐 飲 桃 園 市 桃 園 區 信 光 里 民

第3章 类型、运算符与表达式

!153 第五講 函式 講師 : 李根逸 (Ken-Yi Lee),

C

从问题到程序——文件及输入输出

C/C++ - 字符串与字符串函数

C++ 程式設計

C/C++ 语言 - 循环

Microsoft Word - CPE考生使用手冊 docx

C/C++ Basics

壹:教育文化公益慈善機關或團體免納所得稅適用標準

ebook15-4

C/C++ Programming

1 Project New Project 1 2 Windows 1 3 N C test Windows uv2 KEIL uvision2 1 2 New Project Ateml AT89C AT89C51 3 KEIL Demo C C File

untitled

extend

C 1

SA-CPCB81TRA-CN (Panduit INdustrial Automation Solutions).indd

epub 9-11

c_cpp

2013 C 1 # include <stdio.h> 2 int main ( void ) 3 { 4 int cases, a, b, i; 5 scanf ("%d", & cases ); 6 for (i = 0;i < cases ;i ++) 7 { 8 scanf ("%d %d

e yx = ( y / y) /( x / x) e yx

山东建筑大学学分制管理规定(试行)

( CIP) /. :, ( ) ISBN TP CIP ( 2005) : : : : * : : 174 ( A ) : : ( 023) : ( 023)

<4D F736F F D20B8CAD7E9CDA8A1B A1B33638BAC5B9D8D3DAD4DAC8ABD6DDB5B3D4B1D6D0BFAAD5B9D5FDB7B4B5E4D0CDD1A7CFB0BDCCD3FDBBEEB6AFB5C4CDA8D6AA2E646F63>

:,,,,,,,,,,,,,,,,,,,,,,,,,,,

度定生老病死

按 照 卫 计 委 的 规 划, 对 于 县 级 医 院 主 要 做 一 下 工 作 加 强 临 床 重 点 专 科 建 设, 提 升 县 级 医 院 医 疗 技 术 水 平, 并 配 备 与 专 科 建 设 目 标 一 致 的 适 宜 设 备 1. 县 医 院 除 了 将 健 全 一 级 诊 疗

专科疾病诊治(二十四)

Microsoft Word - 林金萱.docx

<4D F736F F D20BACEECF1E2D3A3BAD6D0D2BDC0EDC2DBB5C4BACBD0C4CAC7CEB1BFC6D1A72E646F63>

<B0DACDD1D1C7BDA1BFB5B5C4C0A7C8C52E733932>

把生命托付给谁?


《中老年男性养生保健》

untitled

untitled

untitled

Microsoft PowerPoint - STU_C_Lang_CH06.ppt

<4D F736F F D2043D3EFD1D4B2CEBFBCCAD6B2E15FBAAFCAFDBFE22E646F63>

(Microsoft Word - \316\304\265\265 1)

範本檔

糖尿病食譜


Microsoft Word 養生與保健_中山大學_講義


萬里社區老人健康照護手冊

Microsoft Word - 強制汽車責任保險承保及理賠作業處理辦法 doc

Microsoft Word - 06.Understanding of Pregnancy and Birth.doc

附 件 一 : 办 理 集 中 式 银 期 转 账 业 务 网 点 名 单 序 号 地 区 网 点 名 称 地 址 联 系 人 电 话 23 工 商 银 行 安 徽 省 铜 陵 百 大 支 行 铜 陵 市 长 江 东 路 50 号 鲁 桂 珍 工 商 银 行 安 徽

2. 二 年 級 吳 毓 秀 老 師 : 感 謝 午 餐 公 司 平 時 均 能 準 時 送 餐, 但 希 望 能 不 要 使 用 加 工 品, 且 學 生 反 映 希 望 能 多 加 蛋 品 的 食 物 3. 三 年 級 柯 阿 青 老 師 : 雞 肉 有 血 水 味, 請 午 餐 公 司 能 調

,,,,,,, (,, ),,,,,,,,,,,,,,, ,,, 4 11,, ( ),,,, ( ), :, ( ),,, 1995, 66 ; ( ),, 1996, , 3-4,,

2002 4,,, 1941,,,,,,,,,,,,,,,,,, : ;:, 1991,

(➂)11. 炎 炎 夏 日, 即 使 下 起 滂 沱 大 雨, 都 消 除 不 了 令 人 心 煩 的 暑 氣 這 句 話 主 要 想 表 達 什 麼? ➀ 夏 日 裡 經 常 下 著 滂 沱 大 雨, 令 人 心 煩 ➁ 下 著 滂 沱 大 雨 的 日 子, 可 以 消 除 暑 氣 ➂ 夏 日

高雄市立五福國民中學九十四學年度第一學期第三次段考二年級本國語文學習領域試題卷

人 物 春 秋 杨 永 泰 将 其 削 藩 策 略 概 括 为 : 以 经 济 方 法 瓦 解 冯 玉 祥 的 第 二 集 团 军, 以 政 治 方 法 解 决 阎 锡 山 的 第 3 集 团 军, 以 军 事 方 法 解 决 李 宗 仁 的 第 四 集 团 军, 以 外 交 方 法 对 付 张 学

台北老爺校外實地參訪結案報告




[改訂新版]C言語による標準アルゴリズム事典

C/C++语言 - C/C++数据

液晶之家论坛-

Microsoft Word - 3圓來如此.doc

ex

<4D F736F F D20AC4FBDBDA4FBB67DA96CAABA2DA743A67EAFC5AAA95FA7B9BD5A5F2E646F63>

PowerPoint 簡報

untitled

untitled

1

PowerPoint Presentation

22. 用 Taylor 级 数 展 开 式 的 前 20 项 和 求 PI 的 近 似 值 23. 输 入 一 个 整 数 矩 阵, 求 矩 阵 中 的 最 大 无 素 及 下 标, 最 小 无 素 及 下 标, 所 有 元 素 的 平 均 值 24. 输 入 一 个 每 个 元 素 类 型 为

<4D F736F F D20D0C5CFA2BBAFB7A2D5B9D6D8B5E3D7A8CFEEB9E6BBAE2E646F63>

关于建立境内违法互联网站黑名单管理制度的通知

? 這 全 都 是 市 政 府 提 供 給 我 的 資 料 低 底 盤 公 車 計 畫 96 年 預 算 新 台 幣 4,500 萬 元 97 年 預 算 新 台 幣 1 億 6,500 萬 元 98 年 預 算 新 台 幣 3 億 2,300 萬 元, 共 有 307 台 低 底 盤 公 車,99

嵌入式Linux开发课程

FY.DOC

C/C++ - 结构体、共用体、枚举体

Transcription:

C C C-1 <stdio.h> C -2 <ctype.h> C -3 <string.h> C -4 <math.h> C -5 / <time.h> C -6 <stdlib.h>

2 C/C++ C-1 <stdio.h> FILE* fopen(const char* filename, const char* mode) filename NULL FILE* freopen(const char* filename, const char* mode, FILE* stream) int fflush(file* stream) 0 EOF int fclose(file* stream) int remove(const char* filename) int rename(const char* oldname, const char* newname) oldname newname FILE* tmpfile() "wb+" char* tmpname(char s[l_tmpnam]) s int setvbuf(file* stream, char* buf, int mode, size_t size) size mode _IOFBF _IOLBF _IONBF void setbuf(file* stream, char* buf) buf int fprintf(file* stream, const char* format,...)

C C 3 int printf(const char* format,...) int sprintf(char* s, const char* format,...) s int fscanf(file* stream, const char* format,...) int scanf(const char* format,...) int sscanf(char* s, const char* format,...) s int fgetc(file* stream) char* fgets(char* s, int n, FILE* stream) int fputc(int c, FILE* stream) char* fputs(const char* s, FILE* stream) int getc(file* stream) int getchar(void) char* gets(char* s) int putc(int c, FILE* stream) int putchar(int c) int puts(const char* s)

4 C/C++ int ungetc(int c, FILE* stream) size_t fread(void* ptr, size_t size, size_t nobj, FILE* stream) size_t fwrite(const void* ptr, size_t size, size_t nobj, FILE* stream) int fseek(file* stream, long offset, int origin) offset origin SEEK_SET SEEK_CUR SEEK_END long ftell(file* stream) void rewind(file* stream) int feof(file* stream) int ferror(file* stream) C-2 <ctype.h> int isalnum(int c) isalpha(c) isdigit(c) int isalpha(int c) isupper(c) islower(c) int iscntrl(int c) ASCII int isdigit(int c) int isgraph(int c) int islower(int c)

C C 5 int isprint(int c) 0x20 (' ') 0x7E ('~') int ispunct(int c) int isspace(int c) int isupper(int c) int isxdigit(int c) int tolower(int c) int toupper(int c) C-3 <string.h> char* strcpy(char* s, const char* ct) s char* strncpy(char* s, const char* ct, size_t n) ct n s char* strcat(char* s, const char* ct) s char* strncat(char* s, const char* ct, size_t n) ct n s int strcmp(const char* cs, const char* ct) cs ct int strncmp(const char* cs, const char* ct, size_t n) cs ct n char* strchr(const char* cs, int c) c cs

6 C/C++ char* strrchr(const char* cs, int c) c cs char* strpbrk(const char* cs, const char* ct) cs char* strstr(const char* cs, const char* ct) cs size_t strlen(const char* cs) cs char* strerror(int n) char* strtok(char* s, const char* t) t s token void* memcpy(void* s, const void* ct, size_t n) ct n s void* memmove(void* s, const void* ct, size_t n) ct n s int memcmp(const void* cs, const void* ct, size_t n) ct cs n void* memchr(const void* cs, int c, size_t n) cs n c void* memset(void* s, int c, size_t n) cs n c s

C C 7 C-4 <math.h> double exp(double x) e^x double log(double x) logx double log10(double x) log 10 x double pow(double x, double y) x y x^y double sqrt(double x) x double ceil(double x) x double double floor(double x) x double double fabs(double x) x hypot(double x, double y) (x^ 2+y^ 2) double ldexp(double x, int n) x 2 n x*2^n double frexp(double x, int* exp) x x = m*2^exp m exp double modf(double x, double* ip) x ip double fmod(double x, double y) y x/y double sin(double x)

8 C/C++ double cos(double x) double tan(double x) double asin(double x) double acos(double x) double atan(double x) double atan2(double y, double x) y/x double sinh(double x) hyperbolic sinh(x)=(e^x-e^(-x))/2 double cosh(double x) hyperbolic cosh(x)=(e^x+e^(- x))/2 double tanh(double x) hyperbolic x))/(e^2+e^(-x)) tanh(x)=(e^x-e^(- C-5 / <time.h> clock_t clock(void) CPU ticks CLK_TCK time_t time(time_t* tp) Calendar Time tp -1 double difftime(time_t time2, time_t time1) time2 time1 time2-time1 time_t mktime(struct tm* tp) *tp -1

C C 9 char* asctime(const struct tm* tp) tm / \n char* ctime(const time_t* tp) time_t / \n struct tm* gmtime(const time_t* tp) time_t UTC Coordinated Universal Time / tm struct tm* localtime(const time_t* tp) time_t / tm size_t strftime(char* s, size_t smax, const char* fmt, const struct tm* tp) / fmt s s smax C-6 <stdlib.h> int abs(int n) long labs(long n) n double atof(const char* s) s 0.0 int atoi(const char* s) s 0 long atol(const char* s) s 0 double strtod(const char* s, char** endp) s endp

10 C/C++ long strtol(const char* s, char** endp, int base) s endp unsigned long strtoul(const char* s, char** endp, int base) strtol void* calloc(size_t nobj, size_t size) nobj nobj size 0 NULL void* malloc(size_t size) NULL void* realloc(void* p, size_t size) p size 0 NULL void free(void* p) p void abort() raise(sigabrt) void exit(int status) 0 int system(const char* s) s MS-DOS char* getenv(const char* name) NULL

C C 11 void* bsearch(const void* key, const void* base, size_t n, size_t size, int (*cmp)(const void* keyval, const void* datum)) base key n size NULL void qsort(void* base, size_t n, size_t size, int (*cmp)(const void*, const void*)) base n size int rand(void) 0 RAND_MAX 0x7FFF void srand(unsigned int seed) 1