Microsoft PowerPoint - 02 C語言基本概述.ppt

Size: px
Start display at page:

Download "Microsoft PowerPoint - 02 C語言基本概述.ppt"

Transcription

1 第二章 C 語言基本概述 C 語言的基本語法 關鍵字 vs. 識別字 各種程式錯誤 提高程式的可讀性 簡單的 C 程式 下面的程式碼可印出兩行字串 :. 簡單的例子 含括指令與標頭檔 (/) #include 是前置處理器的指令 #include 稱為含括指令 語法為 #include < 標頭檔 > 含括指令與標頭檔 (/) 含括動作前後的比較 : 前置處理器以標頭檔 (header file) 的內容取代 #include < > 因為是在編譯前執行, 所以稱為 " 前置 " 處理器 #include <stdio.h> #include <stdlib.h>

2 含括指令與標頭檔 (/) 不含括 stdio.h 或 stdlib.h 標頭檔也可以編譯? 含括指令與標頭檔 (/) 標頭檔的內容 : 標頭檔內是工具函式的宣告, 例如 printf() 在 stdio.h 中, system() 在 stdlib.h 中, 程式裡有使用到的工具函式才需要含括對應的標頭檔案 某些編譯器會將常用的標頭檔自動含括 有些編譯器會出現警告訊息, 並自動含括一些標頭檔 早期的 C 編譯器沒有適當宣告時有一些預設的法則 ; ANSI C 的編譯器如果沒有含括所使用函數的標頭檔, 所用到的工具函數沒有適當的宣告時即無法編譯 函數 (function) main() main() 函數是你的程式執行的起點 程式區塊及本體 程式區塊與本體的範圍 : 每個 C 程式必須有一個 main() 函數, 而且只能有一個 函式

3 變數的使用 宣告方式 : 變數是 CPU 執行演算法過程中存放資料的地方 int num; /* 宣告名稱為 num 的整數變數 */ int a,b,c; /* 宣告 a,b 與 c 為整數變數 */ 同一敘述宣告三個變數 float sum=0.0; /* 宣告浮點數變數 sum, 並設值為 0.0 */ 變數裡存放的資料型態 : char 字元, 如 'A' '' 與 '&' 等 int 整數 long 長整數 如 - 等 short 短整數 float 單精度浮點數 如. -. 等 double 倍精度浮點數 變數的初始化 變數的使用 Integer Type short unsigned short int unsigned int long unsigned long Floating-Point Type float double long double Range in Typical Microprocessor Implementation - ~ 0 ~ - ~ 0 ~ - ~ Approximate Range 0 - ~0 0-0 ~ ~0 0 ~ Significant Digits : machine, operating system, and compiler dependent : not all numbers in the range can be represented precisely : The mass of one electron is approximately 0 - grams. Diameter of the Milky Way galaxy in kilometers is approximately 0 kms. : long double is the same as double for VC and VC00 0 ASCII 字元內碼表 變數的命名規則 NUL LF DC RS ( < F P Z d n x SOH VT NAK US ) = G Q [ e o y STX FF SYN SP * > H R \ f p z ETX CR ETB! +? I S ] g q { EOT SO CAN J T ^ h r ENQ SI EM # - A K U _ i s } ACK DLE SUB $. B L V ` j t ~ BEL DCL ESC % / C M W a k u DEL BS DC FS & 0 : D N X b l v HT DC GS ' ; E O Y c m w 變數名稱可以是英文字母 數字或底線 名稱中不能有空白字元 第一個字元不能是數字 不能使用到關鍵字 intel_x /* 正確 */ _AMD /* 正確, 變數的第一個字母可以是底線 */ dos /* 錯誤, 變數的第一個字母不能是數字 */ my dogs /* 錯誤, 變數不能有空格 */ goto /* 錯誤, 變數不能是 C 語言的關鍵字 */

4 變數的設值方式 宣告的時候設值 ( 初始化 ) int num = ; /* 宣告變數, 並直接設值 */ 宣告後再設值 int num,num; /* 宣告變數 */ char ch; num = ; /* 將整數變數 num 的值設為 */ num = 0; /* 將整數變數 num 的值設為 0 */ ch = m ; /* 將字元變數 ch 的值設為 'm' */ Strong type Language Weak-type Language: 變數使用前不需要宣告, 同一個變數裡可以放不同型態的資料 Strong-type Language: 變數在使用之前一定要宣告, 並且只能存放指定型態的資料, 限制嚴格的好處如下 : 避免變數名稱打錯 ( 如數字 0 與英文字母 O) 增加程式的可讀性 便於程式碼的維護 除錯容易. 識別字及關鍵字 格式化的輸出函數 printf() 利用 printf() 函數在螢幕上印出字串 : 識別字 (identifier) 識別字是用來命名變數或函數的文字 識別字

5 關鍵字 (keyword)(/) 關鍵字是 C 語法的基本元素. 識別字及關鍵字 關鍵字 (keyword) (/) 下表為 C 語言的關鍵字. 識別字及關鍵字 關鍵字 (keyword) 或稱為保留字 (reserved word) 程式錯誤的分類. 除錯 語法錯誤. 除錯 語法錯誤 (syntax error) 程式含有不合語法的敘述, 它無法被編譯程式翻譯 下面是有語法錯誤的程式 : 語意錯誤 (semantic error) 語意錯誤 ( 又稱邏輯錯誤 ), 就是程式的執行結果與寫程式者的預期不同 0

6 語意錯誤 下面是語意錯誤的程式 : /* prog_a, 語意錯誤的程式 */ #include <stdio.h> #include <stdlib.h>. 除錯 語意錯誤通常是你以為電腦會做的, 和電腦實際做的之間有落差. 誤會一場 提高程式的可讀性 (/) 列印程式碼時請用固定字距. 提高程式的可讀性 int main(void) { int num = ''; /* 宣告整數變數 num, 並設值為 '' */ printf("i have %d dogs.\n", num); system("pause"); return 0; } /* prog_a OUTPUT --- I have 0 dogs */ 提高程式的可讀性 (/). 提高程式的可讀性 列印程式碼時使用非固定字距, 且斜體字的程式碼, 較難閱讀 提高程式的可讀性 (/) 程式碼縮排與對齊, 分隔不同的細節層次. 提高程式的可讀性

7 提高程式的可讀性 (/) 註解有助於程式的閱讀與偵錯. 提高程式的可讀性 C 是 Free Format 的語言 #include<stdio.h> #include<stdlib.h> int main(void){ printf("helloworld!\n"); system("pause"); return 0; } #include<stdio.h> #include<stdlib.h> int main(void){printf("helloworld!\n");system("pause");return 0;} int i;main(){for(;i["]<i;++i){--i;}"];read('-'-'-',i+++ Hell\ oworld!\n",'/'/'/'));}read(j,i,p){write(j/p+p,i---j,i/i);} The International Obfuscated C Code Contest Winner of the international C obfuscation contest in 00 #include <unistd.h> #include <curses.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> #include <sys/time.h> #define o0(m,w) mvprintw(w,m?m-:m,"%s%s ",M?" ":"",_) #define O0(M,W) M##M=(M+=W##M)-W##M #define l(m,w) M.tv_##W##sec #define L(m,M,l,L,o,O) for(l=l;l--;)((char*)(m))[o]=((char*)(m))[o] #define I ll,(struct sockaddr*)&il #define i COLS #define j LINES #define L_ ((j%)?j:j-) fd_set I;struct socka\ ddr_in il;struct host\ ent*li; struct timeval IL,l;char L[],_[<<] ;void (int ){_[ --]=+0;if( ++ ) (-- );_ [ ]='=';}double o,oo=+0,oo=+0.; long O,OO=0,oO=,ii,iI,Ii,Ll,lL, II=sizeof(il),Il,ll,LL=0,i=0,li, li;int main(int\ il,char *Li[]){\ initscr();cbreak ();noecho();nonl (); (li=i/); _[0]='[';_[lI-] =']';L(&il,&_,\ II,O,+O,+lI);il. sin_port=htons(( unsigned long)(\ PORT&0xffff));lL =l_;if(il=!--il) {il. sin_addr.\ s_addr=0;bind(i,ii);listen(ll, );ll=accept(i,& II);}else{oO-=; LI=gethostbyname (Li[]);L(&(il. sin_addr),(*li). h_addr_list[0],\ LI->h_length,iI, ii,ii);(*(&il)). sin_family=(&(*\ LI))->h_addrtype ;connect(i,ii); }ii=ii=(o=i*0. )- li/;ii=l_-;o =li=l_*0.;while (_){mvaddch(+oo, oo,' ');o0(ii,ii );o0(ii,il-=il); mvprintw(li-,il,"%d\n\n%d",i,ll );mvhline(li,+0, '- ',i);mvaddch( O,o,'*');move(li,Il);refresh();\ timeout(+speed); gettimeofday(&il,+0);ll=getch(); timeout(0);while (getch()!=err);\ if(ll=='q'&&il)\ write(ll,_+,); if(ii>(ll=0)&&ll ==','){write(ll, _,-(--Il));}else if(ll=='.'&&ii+\ li<i){write(ll, _+li,++il);}else if(il!il)write (ll,_+li-,-); gettimeofday(&l, 0);II=((II=l(IL,)+(l(l,u)-=l( IL,u))-l(l,)+(\ l(l,)-=l(il,)) )<0)?+II-l(l,) +e+(--l(l,)): II;usleep((II+=\ l(l,)*e-speed *e)<0?-ii:+0); if(ll=='q'&&!il) break;fd_zero(&i );FD_SET(lL,&I); memset(&*&il,ll, sizeof(l));if((\ Ll=select(lL+,& I,0,0,&IL)));{if (read(ll,&l,ll+ )){if(!*l){ll++; }else if(*l==ll[ _]){ll--; }else\ if(*(&(*l))==[_ ]){break;}}else{ break;}}o0(o,o); O0(O,o);if(o<0){ o*=-;oo*=-;}if (o>i){o=i+i-o ;Oo*=-;}if(o>=( Ii+=ll)&&O<&&oO <0&&o<Ii+lI){O= ;oo=~-- oo;oo+=ll *e-;}if(o<0){o =ii;ll++;}if(o>= (ii+=il)&&o>ii- &&oo>0&&o<ii+li){o=ii- ;oo=~--oo;oo+=il*e- ;}if(+o>+ii){o- =O;i++; }}endwin();return(0);} Network based Pong game

Microsoft PowerPoint - 02 C語言基本概述.ppt

Microsoft PowerPoint - 02 C語言基本概述.ppt 第二章 C 語言基本概述 C 語言的基本語法關鍵字 vs. 識別字各種程式錯誤提高程式的可讀性 1 2.1 簡單的例子 簡單的 C 程式 下面的程式碼可印出兩行字串 : 2 2.2 解析 C 語言 含括指令與標頭檔 (1/4) #include 是前置處理器的指令 #include 稱為含括指令 語法為 #include < 標頭檔 > 前置處理器以標頭檔 (header file) 的內容取代 #include

More information

Microsoft Word - 最新正文.doc

Microsoft Word - 最新正文.doc 9 21 1.1.1 1.1.2 1 2 2 Windows 7+Office 2010 3 4 5 6 4 7 1.1.3 5 1.1.4 1 3 2 NII 1993 3 CNNIC 2014 1 16 33 1 2013 12 6.18 5358 45.8% 2012 3.7 2 2013 12 5 19.1% 2012 74.5% 81.0% 2013 3G 2013 12 2.47 2012

More information

第4章 信源及压缩编码

第4章  信源及压缩编码 第 4 章 信 源 及 压 缩 编 码 4. 概 述 4.2 语 音 信 号 的 特 征 4.3 语 音 编 码 4.4 图 像 信 号 的 特 征 4.5 图 像 压 缩 编 码 4.6 数 据 信 号 编 码 4. 概 述 现 代 通 信 系 统 的 一 个 重 要 标 志 是 信 源 信 号 传 输 系 统 交 换 系 统 和 信 号 处 理 等 诸 环 节 实 现 了 数 字 化 而 语 言

More information

目 录 1 正 文 乊 前... 5 1.1 目 癿... 5 1.2 本 文 内 容... 5 1.3 声 明... 5 2 字 符 编 码 相 兰 癿 背 景 知 识... 6 2.1 拉 丁 字 母... 6 2.2 什 么 是 字 符 编 码... 6 3 字 符 编 码 标 准... 8

目 录 1 正 文 乊 前... 5 1.1 目 癿... 5 1.2 本 文 内 容... 5 1.3 声 明... 5 2 字 符 编 码 相 兰 癿 背 景 知 识... 6 2.1 拉 丁 字 母... 6 2.2 什 么 是 字 符 编 码... 6 3 字 符 编 码 标 准... 8 关 键 字 字 符 编 码 详 解 版 本 : 1.0 作 者 : crifan 邮 箱 : green-waste (at)163.com 字 符 编 码,ASCII,ISO 8859,ISO 10646,UCS,Unicode,UTF-8 版 本 版 本 日 期 内 容 更 新 1.0 2011-11-02 添 加 了 编 码 相 兰 背 景 知 识 仃 绉 添 加 了 ASCII 和 EASCII

More information

PT-18R PT-18R () PT-18R (CCC)

PT-18R PT-18R () PT-18R (CCC) PT-18R PT-18R PT-18R () PT-18R (CCC) PT-18R Pb Hg Cd CrVI PBB PBDE SJ/T11363-2006 SJ/T11363-2006 1 ( PT-18R ) (+)(-) (+)(-) ( PT-18R ) AC AC AC AC AC AC 2 ( ) AC AC ( PT-18R ) ( PT-18R ) AC AC AC 3 TZ

More information

《计算机应用基础》学习材料(讲义)

《计算机应用基础》学习材料(讲义) 计 算 机 应 用 基 础 学 习 材 料 ( 讲 义 ) Fundamentals of Computer Application 2014-3-22 JIANGSU OPEN UNIVERSITY 第 二 学 习 周 计 算 机 基 础 知 识 ( 一 ) 导 学 在 本 学 习 周, 我 们 主 要 的 任 务 是 认 识 计 算 机 你 将 知 道 计 算 机 是 什 么 时 候 产 生 的,

More information

SuperMap 系列产品介绍

SuperMap 系列产品介绍 wuzhihong@scu.edu.cn 3 / 1 / 16 / John M. Yarbrough: Digital Logic Applications and Design + + 30% 70% 1 CHAPTER 1 Digital Concepts and Number Systems 1.1 Digital and Analog: Basic Concepts P1 1.1 1.1

More information

CC213

CC213 : (Ken-Yi Lee), E-mail: feis.tw@gmail.com 49 [P.51] C/C++ [P.52] [P.53] [P.55] (int) [P.57] (float/double) [P.58] printf scanf [P.59] [P.61] ( / ) [P.62] (char) [P.65] : +-*/% [P.67] : = [P.68] : ,

More information

第 3 章 数 据 在 计 算 机 中 的 表 示 43 在 进 位 计 数 制 中 有 数 码 数 位 ( 位 置 ) 基 数 和 位 权 等 用 语 数 码 是 在 一 个 计 数 制 中 用 来 表 示 数 值 的 符 号 ; 数 位 是 指 数 码 在 一 个 数 中 所 处 的 位 置 ;

第 3 章 数 据 在 计 算 机 中 的 表 示 43 在 进 位 计 数 制 中 有 数 码 数 位 ( 位 置 ) 基 数 和 位 权 等 用 语 数 码 是 在 一 个 计 数 制 中 用 来 表 示 数 值 的 符 号 ; 数 位 是 指 数 码 在 一 个 数 中 所 处 的 位 置 ; 第 3 章 数 据 在 计 算 机 中 的 表 示 3.1 数 据 与 数 制 计 算 机 中 使 用 的 数 据 一 般 可 以 分 为 两 大 类 : 数 值 数 据 和 字 符 数 据 数 值 数 据 常 用 于 表 示 数 的 大 小 与 正 负 ; 字 符 数 据 则 用 于 表 示 非 数 值 的 信 息, 例 如 : 英 文 汉 字 图 形 和 语 音 等 数 据 数 据 在 计 算

More information

LF 打印并走一行

LF 打印并走一行 POS 1 HT 5 LF 4 FF 4 CR 4 NAK 22 CAN 8 DLE EOT 12 ESC FF 4 ESC DC2 11 ESC SP 8 ESC 8 ESC $ 6 ESC % 8 ESC & 9 ESC * 15 ESC - / 10 ESC 2 5 ESC 3 5 ESC 10 ESC @ 19 ESC D 5 ESC E / 10 ESC F 8 ESC G / 10 ESC

More information

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

C/C++语言 - C/C++数据 C/C++ C/C++ Table of contents 1. 2. 3. 4. char 5. 1 C = 5 (F 32). 9 F C 2 1 // fal2cel. c: Convert Fah temperature to Cel temperature 2 # include < stdio.h> 3 int main ( void ) 4 { 5 float fah, cel ;

More information

USSD DTMF 14,400 bits/s group3 class 1&2 GPRS for 900/1800/1900 AT 44pin - - 3V SIM SIM RS-232 : - AT (GSM and 07.05) ,20

USSD DTMF 14,400 bits/s group3 class 1&2 GPRS for 900/1800/1900 AT 44pin - - 3V SIM SIM RS-232 : - AT (GSM and 07.05) ,20 GSM BENQ M22 M22 GSM GSM900/DCS1800/PCS1900 ETSI GSM Phase 2+ 4 2W @ 900MHz 1 1W @ 1800/1900MHz 3V SIM 3.2V~4.2VDC 1.5A 230 260 6 GPRS 250 55.5 40 5.95 mm 13g MT&MO SIM SIM 1 USSD DTMF 14,400 bits/s group3

More information

CC213

CC213 : (Ken-Yi Lee), E-mail: feis.tw@gmail.com 9 [P.11] : Dev C++ [P.12] : http://c.feis.tw [P.13] [P.14] [P.15] [P.17] [P.23] Dev C++ [P.24] [P.27] [P.34] C / C++ [P.35] 10 C / C++ C C++ C C++ C++ C ( ) C++

More information

Microsoft Word - ZPLII中文编程说明.doc

Microsoft Word - ZPLII中文编程说明.doc ZPLII 缩 放 点 阵 字 体 = / = 0CG Triumvirate Bold Condensed) A-Z0-9EPROM ^CW A-Z0-9 = ^FW ^FW N = Normal) R = 90 Roated) I = 180 Inverted) B = 270 (Bottom) = : 15 ^CF 10-1500 2-10 = : 12 ^CV 0 10-1500 2-10

More information

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

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 51 C 51 51 C C C C C C * 2003-3-30 pnzwzw@163.com C C C C KEIL uvision2 MCS51 PLM C VC++ 51 KEIL51 KEIL51 KEIL51 KEIL 2K DEMO C KEIL KEIL51 P 1 1 1 1-1 - 1 Project New Project 1 2 Windows 1 3 N C test

More information

untitled

untitled Introduction to Programming ( 數 ) Lecture 3 Spring 2005 March 4, 2005 Lecture 2 Outline 數 料 If if 狀 if 2 (Standard Output, stdout): 料. ((Standard Input, stdin): 料. 類 數 數 數 說 printf 見 數 puts 串 數 putchar

More information

C++ 程式設計

C++ 程式設計 C C 料, 數, - 列 串 理 列 main 數串列 什 pointer) 數, 數, 數 數 省 不 不, 數 (1) 數, 不 數 * 料 * 數 int *int_ptr; char *ch_ptr; float *float_ptr; double *double_ptr; 數 (2) int i=3; int *ptr; ptr=&i; 1000 1012 ptr 數, 數 1004

More information

Users Manual NX-500

Users Manual NX-500 STAR NX-500 STAR NX-500 STAR STAR (010) 62501499 62501772 (010) 62501116 http//www.starhkg.com.hk/starchi Star NX-500... 1... 3 1-1... 3 1-2... 4 1-3... 5 1-4... 6 1-5... 9... 12 2-1... 12 1... 12 2...

More information

FY.DOC

FY.DOC 高 职 高 专 21 世 纪 规 划 教 材 C++ 程 序 设 计 邓 振 杰 主 编 贾 振 华 孟 庆 敏 副 主 编 人 民 邮 电 出 版 社 内 容 提 要 本 书 系 统 地 介 绍 C++ 语 言 的 基 本 概 念 基 本 语 法 和 编 程 方 法, 深 入 浅 出 地 讲 述 C++ 语 言 面 向 对 象 的 重 要 特 征 : 类 和 对 象 抽 象 封 装 继 承 等 主

More information

ebook35-21

ebook35-21 21 Linux L i n u x 211 U N I X U N I X I / O F I F O U N I X I n t e r n e t s o c k e t () s o c k e t () send() r e c v ( read() w r i t e () send() r e c v () I n t e r n e t 212 Internet Internet S

More information

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

Microsoft Word - 把时间当作朋友(2011第3版)3.0.b.06.doc 2 5 8 11 0 13 1. 13 2. 15 3. 18 1 23 1. 23 2. 26 3. 28 2 36 1. 36 2. 39 3. 42 4. 44 5. 49 6. 51 3 57 1. 57 2. 60 3. 64 4. 66 5. 70 6. 75 7. 83 8. 85 9. 88 10. 98 11. 103 12. 108 13. 112 4 115 1. 115 2.

More information

Users Manual NX-750

Users Manual NX-750 STAR NX-750 STAR NX-750STAR STAR (010) 62501499 62501772 (010) 62501116 http//www.starhkg.com.hk/starchi Star NX-750... 1... 3 1-1...3 1-2...4 1-3...5 1-4...6 1...6 2...7 3...7 1-5...9 1...9 2...10 3...11...

More information

untitled

untitled A, 3+A printf( ABCDEF ) 3+ printf( ABCDEF ) 2.1 C++ main main main) * ( ) ( ) [ ].* ->* ()[] [][] ** *& char (f)(int); ( ) (f) (f) f (int) f int char f char f(int) (f) char (*f)(int); (*f) (int) (

More information

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

新・明解C言語入門編『索引』 !... 75!=... 48 "... 234 " "... 9, 84, 240 #define... 118, 213 #include... 148 %... 23 %... 23, 24 %%... 23 %d... 4 %f... 29 %ld... 177 %lf... 31 %lu... 177 %o... 196 %p... 262 %s... 242, 244 %u... 177

More information

3.1 num = 3 ch = 'C' 2

3.1 num = 3 ch = 'C' 2 Java 1 3.1 num = 3 ch = 'C' 2 final 3.1 final : final final double PI=3.1415926; 3 3.2 4 int 3.2 (long int) (int) (short int) (byte) short sum; // sum 5 3.2 Java int long num=32967359818l; C:\java\app3_2.java:6:

More information

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

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 2013 18 ( ) 1. C pa.c, pb.c, 2. C++ pa.cpp, pb.cpp, Compilation Error cin scanf Time Limit Exceeded 1: A 5 B 5 C 5 D 5 E 5 F 5 1 2013 C 1 # include 2 int main ( void ) 3 { 4 int cases, a, b,

More information

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

C 1 # include <stdio.h> 2 int main ( void ) { 4 int cases, i; 5 long long a, b; 6 scanf (%d, & cases ); 7 for (i = 0;i < cases ;i ++) 8 { 9 201 201 21 ( ) 1. C pa.c, pb.c, 2. C++ pa.cpp, pb.cpp Compilation Error long long cin scanf Time Limit Exceeded 1: A 1 B 1 C 5 D RPG 10 E 10 F 1 G II 1 1 201 201 C 1 # include 2 int main ( void

More information

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

( CIP) /. :, ( ) ISBN TP CIP ( 2005) : : : : * : : 174 ( A ) : : ( 023) : ( 023) ( CIP) /. :, 2005. 2 ( ) ISBN 7-5624-3339-9.......... TP311. 1 CIP ( 2005) 011794 : : : : * : : 174 ( A ) :400030 : ( 023) 65102378 65105781 : ( 023) 65103686 65105565 : http: / /www. cqup. com. cn : fxk@cqup.

More information

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++;

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++; Memory & Pointer trio@seu.edu.cn 2.1 2.1.1 1 int *p int a 0x00C7 0x00C7 0x00C7 2.1.2 2 int I[2], *pi = &I[0]; pi++; char C[2], *pc = &C[0]; pc++; float F[2], *pf = &F[0]; pf++; 2.1.3 1. 2. 3. 3 int A,

More information

c_cpp

c_cpp C C++ C C++ C++ (object oriented) C C++.cpp C C++ C C++ : for (int i=0;i

More information

C 1

C 1 C homepage: xpzhangme 2018 5 30 C 1 C min(x, y) double C // min c # include # include double min ( double x, double y); int main ( int argc, char * argv []) { double x, y; if( argc!=

More information

Program Guide(中文).PDF

Program Guide(中文).PDF RP-U420 LF FF CR RS ESC! ESC % ESC & ESC * ESC < ESC = ESC? ESC @ REC R ESC c 0 ESC c 3 ESC c 4 ESC c 5 ESC d n ESC f ESC o ESC p ESC t ESC z FS & FS. GS I GS V GS r DLE EOT DLE ENQ ID DLE DC4 ASCIIASCII

More information

6 C51 ANSI C Turbo C C51 Turbo C C51 C51 C51 C51 C51 C51 C51 C51 C C C51 C51 ANSI C MCS-51 C51 ANSI C C C51 bit Byte bit sbit

6 C51 ANSI C Turbo C C51 Turbo C C51 C51 C51 C51 C51 C51 C51 C51 C C C51 C51 ANSI C MCS-51 C51 ANSI C C C51 bit Byte bit sbit 6 C51 ANSI C Turbo C C51 Turbo C C51 C51 C51 C51 C51 C51 C51 C51 C51 6.1 C51 6.1.1 C51 C51 ANSI C MCS-51 C51 ANSI C C51 6.1 6.1 C51 bit Byte bit sbit 1 0 1 unsigned char 8 1 0 255 Signed char 8 11 128

More information

nooog

nooog C : : : , C C,,, C, C,, C ( ), ( ) C,,, ;,, ; C,,, ;, ;, ;, ;,,,, ;,,, ; : 1 9, 2 3, 4, 5, 6 10 11, 7 8, 12 13,,,,, 2008 1 1 (1 ) 1.1 (1 ) 1.1.1 ( ) 1.1.2 ( ) 1.1.3 ( ) 1.1.4 ( ) 1.1.5 ( ) 1.2 ( ) 1.2.1

More information

C/C++ 语言 - 循环

C/C++ 语言 - 循环 C/C++ Table of contents 7. 1. 2. while 3. 4. 5. for 6. 8. (do while) 9. 10. (nested loop) 11. 12. 13. 1 // summing.c: # include int main ( void ) { long num ; long sum = 0L; int status ; printf

More information

Microsoft Word - CPE考生使用手冊160524.docx

Microsoft Word - CPE考生使用手冊160524.docx 大 學 程 式 能 力 檢 定 (CPE) 考 生 使 用 手 冊 2016 年 5 月 24 日 這 份 手 冊 提 供 給 參 加 CPE 檢 定 考 試 的 考 生 內 容 包 含 考 試 環 境 的 使 用, 以 及 解 題 時 所 使 用 I/O 的 基 本 知 識 1. 如 欲 報 名 參 加 CPE 考 試, 請 先 於 CPE 網 站 完 成 帳 號 註 冊, 然 後 再 報 名 該

More information

_汪_文前新ok[3.1].doc

_汪_文前新ok[3.1].doc 普 通 高 校 本 科 计 算 机 专 业 特 色 教 材 精 选 四 川 大 学 计 算 机 学 院 国 家 示 范 性 软 件 学 院 精 品 课 程 基 金 青 年 基 金 资 助 项 目 C 语 言 程 序 设 计 (C99 版 ) 陈 良 银 游 洪 跃 李 旭 伟 主 编 李 志 蜀 唐 宁 九 李 涛 主 审 清 华 大 学 出 版 社 北 京 i 内 容 简 介 本 教 材 面 向

More information

华恒家庭网关方案

华恒家庭网关方案 LINUX V1.5 1 2 1 2 LINUX WINDOWS PC VC LINUX WINDOWS LINUX 90% GUI LINUX C 3 REDHAT 9 LINUX PC TFTP/NFS http://www.hhcn.com/chinese/embedlinux-res.html minicom NFS mount C HHARM9-EDU 1 LINUX HHARM9-EDU

More information

51 C 51 isp 10 C PCB C C C C KEIL

51 C 51 isp 10   C   PCB C C C C KEIL http://wwwispdowncom 51 C " + + " 51 AT89S51 In-System-Programming ISP 10 io 244 CPLD ATMEL PIC CPLD/FPGA ARM9 ISP http://wwwispdowncom/showoneproductasp?productid=15 51 C C C C C ispdown http://wwwispdowncom

More information

untitled

untitled 不 料 料 例 : ( 料 ) 串 度 8 年 數 串 度 4 串 度 數 數 9- ( ) 利 數 struct { ; ; 數 struct 數 ; 9-2 數 利 數 C struct 數 ; C++ 數 ; struct 省略 9-3 例 ( 料 例 ) struct people{ char name[]; int age; char address[4]; char phone[]; int

More information

epub 33-8

epub 33-8 8 1) 2) 3) A S C I I 4 C I / O I / 8.1 8.1.1 1. ANSI C F I L E s t d i o. h typedef struct i n t _ f d ; i n t _ c l e f t ; i n t _ m o d e ; c h a r *_ n e x t ; char *_buff; /* /* /* /* /* 1 5 4 C FILE

More information

第3章.doc

第3章.doc 3 3 3 3.1 3 IT Trend C++ Java SAP Advantech ERPCRM C++ C++ Synopsys C++ NEC C C++PHP C++Java C++Java VIA C++ 3COM C++ SPSS C++ Sybase C++LinuxUNIX Motorola C++ IBM C++Java Oracle Java HP C++ C++ Yahoo

More information

Microsoft PowerPoint - C-Ch11.ppt

Microsoft PowerPoint - C-Ch11.ppt 各式各樣的資料型態 11-1 結構的基礎知識 決定新的型態 關於結構 結構資料型態可以將不同資料型態的值整合成新的型態 結構型態的宣告語法 : struct 結構型態 { 資料型態識別字 ; 資料型態識別字 ; }; 加上 struct 進行宣告 宣告結構變數 語法 : 結構型態結構變數名稱 ; 範例 : struct Car car1; 對成員進行存取 使用結構型態的成員時, 必須使用成員選擇運算子

More information

广 州 商 学 院 毕 业 生 就 业 质 量 年 度 报 告 (2015 届 ) 广 州 商 学 院 就 业 指 导 中 心 2015 年 12 月 24 日 目 录 前 言 1 一 学 校 简 介 1 二 质 量 年 度 报 告 介 绍 2 第 一 部 分 就 业 状 况 及 分 析 3 一 基 本 情 况 3 ( 一 ) 毕 业 生 分 布 情 况 3 ( 二 ) 初 次 就 业 率 4 二

More information

第 一 部 分 前 言 研 究 前 言 : 楊 逵 是 臺 灣 文 學 史 上 一 位 不 可 或 缺 的 重 要 作 家 他 的 文 學 作 品, 不 論 是 小 說 詩 歌 或 是 戲 劇 等, 都 有 著 相 當 的 社 會 影 響 力 為 深 入 瞭 解 這 位 文 學 巨 人 的 作 品,

第 一 部 分 前 言 研 究 前 言 : 楊 逵 是 臺 灣 文 學 史 上 一 位 不 可 或 缺 的 重 要 作 家 他 的 文 學 作 品, 不 論 是 小 說 詩 歌 或 是 戲 劇 等, 都 有 著 相 當 的 社 會 影 響 力 為 深 入 瞭 解 這 位 文 學 巨 人 的 作 品, 第 四 屆 全 國 高 中 台 灣 人 文 獎 語 文 組 佳 作 壓 不 扁 的 玫 瑰 楊 逵 的 小 說 研 究 私 立 曉 明 女 中 林 岡 儒 陳 璽 安 楊 筠 圃 指 導 老 師 : 施 淑 慧 第 一 部 分 前 言 研 究 前 言 : 楊 逵 是 臺 灣 文 學 史 上 一 位 不 可 或 缺 的 重 要 作 家 他 的 文 學 作 品, 不 論 是 小 說 詩 歌 或 是 戲

More information

untitled

untitled 料 2-1 料 料 x, y, z 料 不 不 料濾 料 不 料 料 不 料 錄 料 2-1 a 料 2-1 b 2003 a 料 b 料 2-1 料 2003 料 料 行 料濾 料亂 濾 料 料 滑 料 理 料 2001 料 兩 理 料 不 TIN, Triangular Irregular Network 8 2-2 a 數 量 料 便 精 2003 料 行 理 料 立 狀 連 料 狀 立 料

More information

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

2013 C 1 #include <stdio.h> 2 int main(void) 3 { 4 int cases, i; 5 long long a, b; 6 scanf(%d, &cases); 7 for (i = 0; i < cases; i++) 8 { 9 scanf(% 2013 ( 28 ) ( ) 1. C pa.c, pb.c, 2. C++ pa.cpp, pb.cpp Compilation Error long long cin scanf Time Limit Exceeded 1: A 10 B 1 C 1 D 5 E 5 F 1 G II 5 H 30 1 2013 C 1 #include 2 int main(void) 3

More information

C

C C 2017 4 1 1. 2. while 3. 4. 5. for 6. 2/161 C 7. 8. (do while) 9. 10. (nested loop) 11. 12. 3/161 C 1. I 1 // summing.c: 2 #include 3 int main(void) 4 { 5 long num; 6 long sum = 0L; 7 int status;

More information

untitled

untitled 1 1.1 1.2 1.3 1.4 1.5 ++ 1.6 ++ 2 BNF 3 4 5 6 7 8 1.2 9 1.2 IF ELSE 10 1.2 11 1.2 12 1.3 Ada, Modula-2 Simula Smalltalk-80 C++, Objected Pascal(Delphi), Java, C#, VB.NET C++: C OOPL Java: C++ OOPL C# C++

More information

chap07.key

chap07.key #include void two(); void three(); int main() printf("i'm in main.\n"); two(); return 0; void two() printf("i'm in two.\n"); three(); void three() printf("i'm in three.\n"); void, int 标识符逗号分隔,

More information

1 LINUX IDE Emacs gcc gdb Emacs + gcc + gdb IDE Emacs IDE C Emacs Emacs IDE ICE Integrated Computing Environment Emacs Unix Linux Emacs Emacs Emacs Un

1 LINUX IDE Emacs gcc gdb Emacs + gcc + gdb IDE Emacs IDE C Emacs Emacs IDE ICE Integrated Computing Environment Emacs Unix Linux Emacs Emacs Emacs Un Linux C July 27, 2016 Contents 1 Linux IDE 1 2 GCC 3 2.1 hello.c hello.exe........................... 5 2.2............................... 9 2.2.1 -Wall................................ 9 2.2.2 -E..................................

More information

C PICC C++ C++ C C #include<pic.h> C static volatile unsigned char 0x01; static volatile unsigned char 0x02; static volatile unsigned cha

C PICC C++ C++ C C #include<pic.h> C static volatile unsigned char 0x01; static volatile unsigned char 0x02; static volatile unsigned cha CYPOK CYPOK 1 UltraEdit Project-->Install Language Tool: Language Suite----->hi-tech picc Tool Name ---->PICC Compiler Executable ---->c:hi-picinpicc.exe ( Command-line Project-->New Project-->File Name--->myc

More information

Fun Time (1) What happens in memory? 1 i n t i ; 2 s h o r t j ; 3 double k ; 4 char c = a ; 5 i = 3; j = 2; 6 k = i j ; H.-T. Lin (NTU CSIE) Referenc

Fun Time (1) What happens in memory? 1 i n t i ; 2 s h o r t j ; 3 double k ; 4 char c = a ; 5 i = 3; j = 2; 6 k = i j ; H.-T. Lin (NTU CSIE) Referenc References (Section 5.2) Hsuan-Tien Lin Deptartment of CSIE, NTU OOP Class, March 15-16, 2010 H.-T. Lin (NTU CSIE) References OOP 03/15-16/2010 0 / 22 Fun Time (1) What happens in memory? 1 i n t i ; 2

More information

ASCII RS-232C RS232C 9 SD 3 RD 2 GND 5 RD 3 SD 2 SG 7 RS232,, : RS232C 9 RS232/RS485 MR SD 3 RD 2

ASCII RS-232C RS232C 9 SD 3 RD 2 GND 5 RD 3 SD 2 SG 7 RS232,, : RS232C 9 RS232/RS485 MR SD 3 RD 2 MR13 MR13 MR13 PID SR253 FP21SR25SR53, RS232CRS485 2/1/14 XF-MR13 1 2 3 4 5 standard : 6 7 PC, BASICA, MR13 :MR13BAS : :ASC 1, 21 (words ) BASICAEXE - COMOPAQBASIC SRFPBAS - BASIC STAR253BAS - BASIC SR25"DS"

More information

C/C++语言 - 分支结构

C/C++语言 - 分支结构 C/C++ Table of contents 1. if 2. if else 3. 4. 5. 6. continue break 7. switch 1 if if i // colddays.c: # include int main ( void ) { const int FREEZING = 0; float temperature ; int cold_ days

More information

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

Microsoft Word - 把时间当作朋友(2011第3版)3.0.b.07.doc 2 5 8 11 0 1. 13 2. 15 3. 18 1 1. 22 2. 25 3. 27 2 1. 35 2. 38 3. 41 4. 43 5. 48 6. 50 3 1. 56 2. 59 3. 63 4. 65 5. 69 13 22 35 56 6. 74 7. 82 8. 84 9. 87 10. 97 11. 102 12. 107 13. 111 4 114 1. 114 2.

More information

untitled

untitled 1 5 IBM Intel 1. IBM 第 1/175 页 第 2/175 页 第 3/175 页 80 第 4/175 页 2. IBM 第 5/175 页 3. (1) 第 6/175 页 第 7/175 页 第 8/175 页 = = 第 9/175 页 = = = = = 第 10/175 页 = = = = = = = = 3. (2) 第 11/175 页 第 12/175 页 第 13/175

More information

untitled

untitled 3 C++ 3.1 3.2 3.3 3.4 new delete 3.5 this 3.6 3.7 3.1 3.1 class struct union struct union C class C++ C++ 3.1 3.1 #include struct STRING { typedef char *CHARPTR; // CHARPTR s; // int strlen(

More information

C C C The Most Beautiful Language and Most Dangerous Language in the Programming World! C 2 C C C 4 C 40 30 10 Project 30 C Project 3 60 Project 40

C C C The Most Beautiful Language and Most Dangerous Language in the Programming World! C 2 C C C 4 C 40 30 10 Project 30 C Project 3 60 Project 40 C C trio@seu.edu.cn C C C C The Most Beautiful Language and Most Dangerous Language in the Programming World! C 2 C C C 4 C 40 30 10 Project 30 C Project 3 60 Project 40 Week3 C Week5 Week5 Memory & Pointer

More information

C语言的应用.PDF

C语言的应用.PDF AVR C 9 1 AVR C IAR C, *.HEX, C,,! C, > 9.1 AVR C MCU,, AVR?! IAR AVR / IAR 32 ALU 1KBytes - 8MBytes (SPM ) 16 MBytes C C *var1, *var2; *var1++ = *--var2; AVR C 9 2 LD R16,-X ST Z+,R16 Auto (local

More information

, 7, Windows,,,, : ,,,, ;,, ( CIP) /,,. : ;, ( 21 ) ISBN : -. TP CIP ( 2005) 1

, 7, Windows,,,, : ,,,, ;,, ( CIP) /,,. : ;, ( 21 ) ISBN : -. TP CIP ( 2005) 1 21 , 7, Windows,,,, : 010-62782989 13501256678 13801310933,,,, ;,, ( CIP) /,,. : ;, 2005. 11 ( 21 ) ISBN 7-81082 - 634-4... - : -. TP316-44 CIP ( 2005) 123583 : : : : 100084 : 010-62776969 : 100044 : 010-51686414

More information

<4D F736F F D20B2C43032B3B920B8EAAEC6ABACBA41BB50AAEDA5DCA6A12E646F63>

<4D F736F F D20B2C43032B3B920B8EAAEC6ABACBA41BB50AAEDA5DCA6A12E646F63> C++ î Á 2-1! C Ã Ñ Ó 2-1.1! î ô à i¾ ò{î ~ à } Ñ lf ŠÈx«v ~ C ÃÑ lî nùƒ f d Û Ã ó ÎÛol ƒ à ó dîû Ê óãi Š~ v C v ÃÈxi á «constant Û Ù Ã ˆ ó nù d «12-452 100000 0 d 'A' 'Z' 8.23 0.1232 0.001 ŒÛ~ iñ C++ ó

More information

ebook14-4

ebook14-4 4 TINY LL(1) First F o l l o w t o p - d o w n 3 3. 3 backtracking parser predictive parser recursive-descent parsing L L ( 1 ) LL(1) parsing L L ( 1 ) L L ( 1 ) 1 L 2 L 1 L L ( k ) k L L ( 1 ) F i r s

More information

The golden pins of the PCI card can be oxidized after months or years

The golden pins of the PCI card can be oxidized after months or years Q. 如何在 LabWindows/CVI 編譯 DAQ Card 程式? A: 請參考至下列步驟 : 步驟 1: 安裝驅動程式 1. 安裝 UniDAQ 驅動程式 UniDAQ 驅動程式下載位置 : CD:\NAPDOS\PCI\UniDAQ\DLL\Driver\ ftp://ftp.icpdas.com/pub/cd/iocard/pci/napdos/pci/unidaq/dll/driver/

More information

untitled

untitled B Windows 2002 B Windows 6 Windows 98 Word 2000 Excel 2000 Internet B Windows B Windows B Windows CIP /. 2000 ISBN 7-302-03934-8............ TV. TP393 CIP 2000 31044 B Windows 100084 http://www.tup.tsinghua.edu.cn

More information

untitled

untitled 1 DBF (READDBF.C)... 1 2 (filetest.c)...2 3 (mousetes.c)...3 4 (painttes.c)...5 5 (dirtest.c)...9 6 (list.c)...9 1 dbf (readdbf.c) /* dbf */ #include int rf,k,reclen,addr,*p1; long brec,erec,i,j,recnum,*p2;

More information

Microsoft PowerPoint - P833_Ch02.ppt

Microsoft PowerPoint - P833_Ch02.ppt 第 2 章建立第一個 C 程式 2 1 如何設計 C 應用程式 2 2 C 應用程式的開發環境 2 3 建立第一個 C 程式 2 4 C 程式的基本架構 2 5 C 程式的寫作風格 2 6 在 Windows 作業系統執行 C 程式 2 1 如何設計 C 應用程式 2 1 1 程式設計的基礎 2 1 2 演算法 2 1 1 程式設計的基礎 說明 程式設計是將需要解決的問題轉換成程式碼, 程式碼不只能夠在電腦上正確的執行,

More information

C6_ppt.PDF

C6_ppt.PDF C01-202 1 2 - (Masquerade) (Replay) (Message Modification) (Denial of Service) - ( ) (Eavesdropping) (Traffic Analysis) 8 1 2 7 3 6 5 4 3 - TCP SYN (SYN flood) Smurf Ping of Death LAND Attack Teardrop

More information

招 标 文 件 中 提 供 的 投 标 函 样 本 中 相 关 内 容 相 抵 触 或 有 遗 漏 的 3 随 商 务 标 正 本 提 供 的 电 子 清 单 计 价 文 件 ( 采 用 ETB 格 式, 介 质 为 光 盘, 背 面 需 写 上 不 可 擦 去 的 单 位 名 称 ) 无 法 读

招 标 文 件 中 提 供 的 投 标 函 样 本 中 相 关 内 容 相 抵 触 或 有 遗 漏 的 3 随 商 务 标 正 本 提 供 的 电 子 清 单 计 价 文 件 ( 采 用 ETB 格 式, 介 质 为 光 盘, 背 面 需 写 上 不 可 擦 去 的 单 位 名 称 ) 无 法 读 34.2.2 商 务 标 评 审 34.2.2.1 商 务 标 初 步 评 审 (1) 本 项 目 招 标 设 有 控 制 价 A, 投 标 报 价 小 于 招 标 人 控 制 价 A 的 投 标 人 为 有 效 投 标 人, 投 标 报 价 大 于 或 等 于 A 的 投 标 人 为 无 效 投 标 人 在 有 效 投 标 人 中, 最 低 投 标 报 价 的 投 标 人 经 评 审 合 格 的

More information

378高雄市都市計畫說明書

378高雄市都市計畫說明書 378 高 雄 市 都 市 計 畫 說 明 書 案 名 : 變 更 高 雄 市 楠 梓 區 高 楠 段 二 七 九 地 號 等 八 筆 農 業 區 土 地 為 批 發 市 場 用 地 擬 定 申 請 單 位 : 高 雄 市 政 府 計 畫 範 圍 : 如 圖 示 法 令 依 據 : 都 市 計 畫 法 第 二 十 七 條 第 一 項 第 四 款 一 背 景 說 明 : ( 一 ) 本 市 現 有 果

More information

untitled

untitled MODBUS 1 MODBUS...1 1...4 1.1...4 1.2...4 1.3...4 1.4... 2...5 2.1...5 2.2...5 3...6 3.1 OPENSERIAL...6 3.2 CLOSESERIAL...8 3.3 RDMULTIBIT...8 3.4 RDMULTIWORD...9 3.5 WRTONEBIT...11 3.6 WRTONEWORD...12

More information

Microsoft Word - C-pgm-ws2010.doc

Microsoft Word - C-pgm-ws2010.doc Information and Communication Technology 資訊與通訊科技 Loops (while/for) C 廻路 姓名 : 班別 : ( ) CS C Programming #1 Functions 函數 : 1 若 n=14, 求以下表示式的值 Expressions 表示式 Value 值 Expressions 表示式 Value 值 A 20 2 * (n /

More information

static struct file_operations gpio_ctl_fops={ ioctl: gpio_ctl_ioctl, open : gpio_open, release: gpio_release, ; #defineled1_on() (GPBDAT &= ~0x1) #def

static struct file_operations gpio_ctl_fops={ ioctl: gpio_ctl_ioctl, open : gpio_open, release: gpio_release, ; #defineled1_on() (GPBDAT &= ~0x1) #def Kaise s 2410 Board setting [1]. Device Driver Device Driver Linux s Kernel ARM s kernel s3c2410_kernel2.4.18_r1.1_change.tar.bz2 /usr/src (1) #cd /usr/src (2) #tar xfj s3c2410_kernel2.4.18_r1.1_change.tar.bz2

More information

最新执法工作手册(一百一十六).doc

最新执法工作手册(一百一十六).doc ......... ()..................... I ... 2001... 2001........................ II ............ III 1996 12 14 24 1996 12 14 8 55 1996 12 14 1980 54 1 2 3 1 2 3 4 1 2 3 4 5 () ( 1984 147

More information

Ps22Pdf

Ps22Pdf C ( CIP) C /. :, 2001. 7 21 ISBN 7-5624 -2355-5. C........ C. TP312 CIP ( 2001 ) 034496 C * * : 7871092 1 /16 : 14. 25 : 356 20017 1 20017 1 : 1 6 000 ISBN 7-5624-2355-5 / TP311 : 21. 00 C, C,,,, C,, (

More information

2015年计算机二级(C语言)模拟试题及答案(四)

2015年计算机二级(C语言)模拟试题及答案(四) 2016 年 计 算 机 二 级 (C 语 言 ) 模 拟 试 题 及 答 案 (4) 一 填 空 题 1 C 语 言 中 基 本 的 数 据 类 型 有 : 2 C 语 言 中 普 通 整 型 变 量 的 类 型 说 明 符 为, 在 内 存 中 占 字 节, 有 符 号 普 通 整 型 的 数 据 范 围 是 3 整 数 -35 在 机 内 的 补 码 表 示 为 4 执 行 下 列 语 句 int

More information

最新执法工作手册(一百零二)

最新执法工作手册(一百零二) ........................ I .................................... II \..................................... III [2002]147 [2000]25 2002 10 1 2005 12 31 2002 10 8 1995 6 8 3 1 2 5 10 2 4 94 423

More information

MCS FCC

MCS FCC F&B 100% MCS FCC6000...1...2...2...3...4...5...7...8...18 HIGH LOW OUT MAN COM1 COM2 PRINT ERROR MONTH.DATA HOUR.MINUTE MAN LOW HIGH OUT HIGH LOW OUT MAN 0 0 1-0 1 1 2 5 4. 5 0 0 1-0 2 2 5 4 6. 9 0 0 1-0

More information

FZUBRIDGE

FZUBRIDGE 1 2 3 5 8 9 10 11 12 13 14 15 16 17 19 20 21 23 24 25 29 31 32 33 34 M g1 M 1g ( M 2g M 1g )(1 e ( t, ) ) 35 36 M Q M Q g g 1.15M 1.05Q p p 37 max 1 n e max n i1 1 2 i 38 39 n max M Q M Q g g

More information

基金发行法律法规

基金发行法律法规 ...1...9...11...13...30...35...47...49...50 1998/4...51 1998/10...51...52...56 ( ) 2001...57...59 2002...62...64...68 [2002] 2002.11.26 ( ) ( ) ) 7 ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ( ) ( ) 60 ) 7

More information

2/80 2

2/80 2 2/80 2 3/80 3 DSP2400 is a high performance Digital Signal Processor (DSP) designed and developed by author s laboratory. It is designed for multimedia and wireless application. To develop application

More information

学习MSP430单片机推荐参考书

学习MSP430单片机推荐参考书 MSP430 16 MSP430 C MSP430 C MSP430 FLASH 16 1 CPU 16 ALU 16 PC SP SR R4~R15 2 3 00-FFH 100-1FFH 4 5 1 2 51 24 27 6 1 2 3 4 5 6 4 12 SR SP SR CPU SR CPU C Z N GIE CPUOff CPU OscOff SCG0 SCG1 CPU EXIT SP

More information

Microsoft PowerPoint - 20-string-s.pptx

Microsoft PowerPoint - 20-string-s.pptx String 1 String/ 1.: char s1[10]; char *s2; char s3[] = "Chan Tai Man"; char s4[20] = "Chan Siu Ming"; char s5[]={'h','e','l','l','o','\0'; 0 1 2 3 4 5 6 7 8 9 10 11 12 s3 C h a n T a i \0 M a n \0 printf

More information

Python a p p l e b e a r c Fruit Animal a p p l e b e a r c 2-2

Python a p p l e b e a r c Fruit Animal a p p l e b e a r c 2-2 Chapter 02 變數與運算式 2.1 2.1.1 2.1.2 2.1.3 2.1.4 2.2 2.2.1 2.2.2 2.2.3 type 2.2.4 2.3 2.3.1 print 2.3.2 input 2.4 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 + 2.4.6 Python Python 2.1 2.1.1 a p p l e b e a r c 65438790

More information

6020

6020 6020 ... 1 1.1... 1 1.2... 1 1.3 6020... 2 1.3... 5 1.3.1... 5 1.3.2 ISA I/O (S1)... 5 1.3.3 (J4,5,6)... 6 1.3.4... 6... 9 2.1... 9 2.2... 9 2.3 COMPILING AND LINKING... 11 2.3.1 MICROSOFT C MICROSOFT

More information

Microsoft Word - CIN-DLL.doc

Microsoft Word - CIN-DLL.doc 6.3. 调 用 动 态 链 接 库 (DLL) 相 对 于 CIN 来 讲,NI 更 推 荐 用 户 使 用 DLL 来 共 享 基 于 文 本 编 程 语 言 开 发 的 代 码 除 了 共 享 或 重 复 利 用 代 码, 开 发 人 员 还 能 利 用 DLL 封 装 软 件 的 功 能 模 块, 以 便 这 些 模 块 能 被 不 同 开 发 工 具 利 用 在 LabVIEW 中 使 用

More information

Excel VBA Excel Visual Basic for Application

Excel VBA  Excel Visual Basic for Application Excel VBA Jun5,00 Sub 分頁 () Dim i As Integer Dim Cname As String Dim Code As Variant Set score=thisworkbook.sheets("sheet") Code=Array(" 專北一 "," 專北二 "," 專北三 "," 專桃園 "," 專桃竹 "," 專中苗 ", " 專台中 "," 專台南 ","

More information

新版 明解C++入門編

新版 明解C++入門編 511!... 43, 85!=... 42 "... 118 " "... 337 " "... 8, 290 #... 71 #... 413 #define... 128, 236, 413 #endif... 412 #ifndef... 412 #if... 412 #include... 6, 337 #undef... 413 %... 23, 27 %=... 97 &... 243,

More information

Historical Fund Prices_TC_mt_2017.pdf

Historical Fund Prices_TC_mt_2017.pdf 1. (i) (ii) 2. 5 1 3. 4. 5. 65 65 / 6. 7. / 8. 03/04/2017 19.1857 17.7658 16.8445 13.6299 11.6134 15.8544 20.1994 15.5516 7.3412 19.6477 9.6339 12.8183 11.3199 10.0279 12.8949 13.6338 10.0000 10.0000 05/04/2017

More information

C 語言—陣列及字串

C 語言—陣列及字串 10/16 系程主講人 : 荊輔翔 概論 陣列 陣列是一個具有索引 (index) 性質的連續資料儲存空間集合 陣列中每一個資料儲存空間稱之為陣列元素 (array element); 它們都具有相同的資料名稱 資料型態 及空間大小 ; 但存取它們時則須藉由索引 ( 或稱註標 ) 來區別辨識 索引代表資料在陣列中的相對位址 ( 其計數由 0 開始, 其餘累加類推 ), 且須由中括號 [ ] 涵蓋之

More information

Microsoft Word - administrative-law-08.doc

Microsoft Word - administrative-law-08.doc 行 政 法 第 八 講 : 公 務 員 綱 要 一 公 務 員 之 概 念 ( 一 ) 學 理 上 之 概 念 ( 二 ) 法 律 上 之 概 念 二 公 務 員 關 係 之 特 質 : 特 別 權 力 關 係 ( 一 ) 起 源 ( 二 ) 定 義 ( 三 ) 現 代 定 義 ( 四 ) 加 入 之 原 因 ( 五 ) 種 類 ( 六 ) 特 色 ( 七 ) 理 論 演 變 ( 八 ) 存 廢 問

More information

Microsoft Word - ACL chapter02-5ed.docx

Microsoft Word - ACL chapter02-5ed.docx 第 2 章神奇的質數 2.1.1 什麼是質數 1 1 1 打下好基礎 - 程式設計必修的數學思維與邏輯訓練 1 1 0 10 2 3 5 7 4 6 8 9 10 4 10000 1229 1000 168 2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97 101 103 107 109 113 127 131

More information

mvc

mvc Build an application Tutor : Michael Pan Application Source codes - - Frameworks Xib files - - Resources - ( ) info.plist - UIKit Framework UIApplication Event status bar, icon... delegation [UIApplication

More information

1

1 基本練習題 1 答 :(A) 2 答 :(B) 3 答 :(C) 4 答 :(B) 5 答 :(D) 6 答 :2 7 答 :(B) 8 答 : (A) A B C / D E * + F G / - (B) A B + C D - * E / (C) A B C * + E F + - 9 答 : (A) - + A * - / BCDE / F G (B) / * + A B C D E (C)

More information