untitled

Size: px
Start display at page:

Download "untitled"

Transcription

1 1 DBF (READDBF.C) (filetest.c) (mousetes.c) (painttes.c) (dirtest.c) (list.c)...9

2 1 dbf (readdbf.c) /* dbf */ #include <stdio.h> int rf,k,reclen,addr,*p1; long brec,erec,i,j,recnum,*p2; unsigned char buf[4096],pbuf[81]; FILE *fp; main(int argc,char *argv[]) if (argc==1) printf("usage:\n"); exit(0); fp=fopen(argv[1],"rb"); if (fp==null) printf("%s can not open\n", argv[1]); exit(0); fread(buf,1,32,fp); p1=(int *)buf; p2=(long *)buf; p2++; recnum= *p2; p1+=4; addr= *p1; p1++; reclen= *p1; if (argc==2) rf=0; brec=1; erec=recnum; if (argc==3) rf=atoi(argv[2]); brec=1; erec=recnum; if (argc==4) rf=atoi(argv[2]); brec=atoi(argv[3]); erec=recnum; 1

3 if (argc==5) rf=atoi(argv[2]); brec=atoi(argv[3]); erec=atoi(argv[4]); fseek(fp,(long)addr-32,1); for (i=1; i<erec; i++) fread(buf,1,reclen,fp); buf[reclen]='\0'; if (i>=brec && i<=erec) if (rf!=0) printf("rec no: %d\n", i); for(j=0; j<=reclen;) for(k=0; k<80; ) pbuf[k++]=buf[j++]; pbuf[80]='\0'; printf("%s",pbuf); printf("\n"); fclose(fp); 2 (filetest.c) /* */ #include <stdio.h> void sort(int *list, int n) int i,j,next; for(i=1; i<n; i++) next=list[i]; for(j=i-1;j>=0 && next<list[j]; j--) list[j+1]=list[j]; list[j+1]=next; main() int input[10], i; FILE *fpin, *fpout; 2

4 if ((fpin=fopen("in.dat", "r"))==null) printf("can not open file in.dat\n"); exit(-1); for(i=0; i<10; i++) fscanf(fpin, "%d", &input[i]); /* fread(input, sizeof(int), 10, fpin); */ sort(input, 10); if ((fpout=fopen("out.dat", "w"))==null) printf("can not open file in\n"); exit(-1); for(i=0; i<10; i++) fprintf(fpout, "%d ", input[i]); /* fwrite(input, sizeof(int), 10, fpout); */ printf("\n"); 3 (mousetes.c) /* */ #include <dos.h> #define ON 1 #define OFF 2 #define LEFTBUTTON 1 #define RIGHTBUTTON 2 #define BOTHBUTTON 3 int havemouse=0; int resetmouse() r.x.ax=0; int86(0x33, &r, &r); havemouse=r.x.ax; return havemouse==0? 0 : r.x.bx; void lightmouse(int op) 3

5 if (havemouse) r.x.ax=op; int86(0x33, &r,&r); int getmousestatus(int *x, int *y) if (havemouse) r.x.ax=3; int86(0x33, &r, &r); *x= r.x.cx; *y= r.x.dx; return r.x.bx; else return 0; void setmousexy(int x, int y) if (havemouse) r.x.ax=4; r.x.cx=x; r.x.dx=y; void setmouserange(int left, int top, int right, int bottom) if (havemouse) r.x.ax=7; r.x.cx=left; r.x.dx=right; 4

6 r.x.ax=8; r.x.cx=top; r.x.dx=bottom; main() int button, x, y n; if (!(n=resetmouse())) printf("no Mouse\n"); exit(0); else printf("yes:%d\n",n); lightmouse(on); setmouserange(50,50,100,100); do button=getmousestatus(&x,&y); if (button==leftbutton) printf("leftbutton\n"); else if (button==rightbutton) printf(" RIGHTBUTTON\n"); while (button!=bothbutton); lightmouse(off); 4 (painttes.c) /* */ #include <stdio.h> #include <dos.h> #include <graphics.h> /* */ #define ON 1 #define OFF 2 #define LEFTBUTTON 1 #define RIGHTBUTTON 2 #define BOTHBUTTON 3 int havemouse=0; int resetmouse() 5

7 r.x.ax=0; int86(0x33, &r, &r); havemouse=r.x.ax; return havemouse==0? 0 : r.x.bx; void lightmouse(int op) if (havemouse) r.x.ax=op; int86(0x33, &r,&r); int getmousestatus(int *x, int *y) if (havemouse) r.x.ax=3; int86(0x33, &r, &r); *x= r.x.cx; *y= r.x.dx; return r.x.bx; else return 0; void setmousexy(int x, int y) if (havemouse) r.x.ax=4; r.x.cx=x; r.x.dx=y; 6

8 void setmouserange(int left, int top, int right, int bottom) if (havemouse) r.x.ax=7; r.x.cx=left; r.x.dx=right; r.x.ax=8; r.x.cx=top; r.x.dx=bottom; /* */ int mousein(int mx, int my, int x, int y, int width, int height) return (mx>=x) && (mx<x+width) && (my>=y) && (mx<y+height); main() int mode=vgahi; int driver=vga; int color=white; int fillcolor=white; int x,y,button,i; initgraph(&driver, &mode, "c:\tc"); rectangle(0,429,639,479); moveto(10,440); outtext("line Color"); moveto(10,460); outtext("fill Color"); for(i=0; i<16; i++) rectangle(100+i*25,435,124+i*25,475); setfillstyle(1,i); bar(101+i*25,436,123+i*25,474); 7

9 line(100,455,499,455); moveto(505,440); setcolor(1); outtext("linewidth:1"); bar(600,435,630,455); moveto(505,460); setcolor(2); outtext("linewidth:3"); bar(600,456,630,476); setcolor(white); resetmouse(); lightmouse(on); while(1) button=getmousestatus(&x, &y); if (button==leftbutton) if (mousein(x,y,0,429,639,50)) if (mousein(x,y,100,435,400,20)) color=(x-100)/25; setcolor(color); if (mousein(x,y,100,455,400,20)) fillcolor=(x-100)/25; setfillstyle(1,fillcolor); if (mousein(x,y,600,435,30,20)) setlinestyle(0,0,1); outtext("1"); if (mousein(x,y,600,456,30,20)) setlinestyle(0,0,3); outtext("3"); /* if (mousein(x,y,550,456,75,14)) outtext("out"); break; */ else lightmouse(off); lineto(x,y); lightmouse(on); 8

10 else if (button==rightbutton) lightmouse(off); setviewport(0,0,639,428,1); floodfill(x,y,color); setviewport(0,0,639,479,1); lightmouse(on); else if (button==bothbutton) break; else moveto(x,y); closegraph(); 5 (dirtest.c) /* */ #include <stdio.h> #include <dir.h> main() struct ffblk ffblk; int done; printf("directory listing of *.c with odd size:\n"); done=findfirst("*.c", &ffblk, 0); while(!done) if (ffblk.ff_fsize % 2) printf(" %s %ld\n", ffblk.ff_name,ffblk.ff_fsize); done=findnext(&ffblk); 6 (list.c) /* */ #include <stdio.h> #include <alloc.h> main() 9

11 int n,i, data; struct node int data; struct node *next; *head=null, *p, *q1, *q2; scanf("%d", &n); for(i=0; i<n; i++) scanf("%d", &data); p=(struct node *)malloc(sizeof(struct node)); p->data= data; q1=null; q2=head; while ((q2!=null) && (p->data > q2->data)) q1=q2; q2=q2->next; p->next=q2; if (q1!=null) q1->next=p; else head=p; for(p=head; p!=null; p=p->next) printf("%d,", p->data); 10

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

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

CC213

CC213 : (Ken-Yi Lee), E-mail: [email protected] 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

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

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言語入門編『索引』

新・明解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

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

第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

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

Generated by Unregistered Batch DOC TO PDF Converter , please register! 浙江大学 C 程序设计及实验 试题卷 学年春季学期考试时间 : 2003 年 6 月 20 日上午 8:3

Generated by Unregistered Batch DOC TO PDF Converter , please register! 浙江大学 C 程序设计及实验 试题卷 学年春季学期考试时间 : 2003 年 6 月 20 日上午 8:3 浙江大学 C 程序设计及实验 试题卷 2002-2003 学年春季学期考试时间 : 2003 年 6 月 20 日上午 8:30-10:30 注意 : 答题内容必须写在答题卷上, 写在本试题卷上无效 一. 单项选择题 ( 每题 1 分, 共 10 分 ) 1. 下列运算符中, 优先级最低的是 A.

More information

<4D F736F F D20D7DBBACFCAD4CCE231B2CEBFBCB4F0B0B82E646F63>

<4D F736F F D20D7DBBACFCAD4CCE231B2CEBFBCB4F0B0B82E646F63> 综合测试题一参考答案 一 填空题 ( 表达式求值 )( 本大题共 10 小题, 每小题 1 分, 共 10 分 ) 设各语句的初始化 相同 :int x=3,y=2,z=1; 1. x=y==z x= 0 2. x=!(z>y)&&!x 1 x= 1 3. x=(y++*1/3) x= 0 4. x=((x>y>z)?1:0) x= 0 5. x*=2+3 x= 15 6. x=(++z*y,y++,z%y)

More information

ebook15-C

ebook15-C C 1 1.1 l s ( 1 ) - i i 4. 14 - d $ l s -ldi /etc/. /etc/.. - i i 3077 drwxr-sr-x 7 bin 2048 Aug 5 20:12 /etc/./ 2 drwxr-xr-x 13 root 512 Aug 5 20:11 /etc/../ $ls -ldi /. /..... i 2 2 drwxr-xr-x 13 root

More information

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

[改訂新版]C言語による標準アルゴリズム事典 iii C 1991 SEND + MORE = MONEY C 100 2003 Java 2003 27 PC-9800 C BMP SVG EPS BMPSVG WindowsMacLinux Web iv int main() int main(void) EXIT_SUCCESS 0 https://github.com/okumuralab/ algo-c TEX TEX PDF PDF

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

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

Microsoft Word - 实用案例.doc

Microsoft Word - 实用案例.doc 计 算 机 系 统 应 用 2009 年 第 12 期 嵌 入 式 Linux 下 温 湿 度 传 感 器 的 设 计 与 实 现 1 Design and Implementation of Temperature and Humidity Sensor Based on Embedded Linux 陈 博 刘 锦 高 ( 华 东 师 范 大 学 电 子 科 学 技 术 系 上 海 200241)

More information

FY.DOC

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

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

第7章-并行计算.ppt

第7章-并行计算.ppt EFEP90 10CDMP3 CD t 0 t 0 To pull a bigger wagon, it is easier to add more oxen than to grow a gigantic ox 10t 0 t 0 n p Ts Tp if E(n, p) < 1 p, then T (n) < T (n, p) s p S(n,p) = p : f(x)=sin(cos(x))

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

新版 明解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

How to Debug Tuxedo Server printf( Input data is: %s, inputstr); fprintf(stdout, Input data is %s, inputstr); fprintf(stderr, Input data is %s, inputstr); printf( Return data is: %s, outputstr); tpreturn(tpsuccess,

More information

ebook39-5

ebook39-5 5 3 last-in-first-out, LIFO 3-1 L i n e a r L i s t 3-8 C h a i n 3 3. 8. 3 C + + 5.1 [ ] s t a c k t o p b o t t o m 5-1a 5-1a E D 5-1b 5-1b E E 5-1a 5-1b 5-1c E t o p D t o p D C C B B B t o p A b o

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

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/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

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

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

CC213

CC213 : (Ken-Yi Lee), E-mail: [email protected] 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

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

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

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

( 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

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

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

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

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

3. 給 定 一 整 數 陣 列 a[0] a[1] a[99] 且 a[k]=3k+1, 以 value=100 呼 叫 以 下 兩 函 式, 假 設 函 式 f1 及 f2 之 while 迴 圈 主 體 分 別 執 行 n1 與 n2 次 (i.e, 計 算 if 敘 述 執 行 次 數, 不

3. 給 定 一 整 數 陣 列 a[0] a[1] a[99] 且 a[k]=3k+1, 以 value=100 呼 叫 以 下 兩 函 式, 假 設 函 式 f1 及 f2 之 while 迴 圈 主 體 分 別 執 行 n1 與 n2 次 (i.e, 計 算 if 敘 述 執 行 次 數, 不 1. 右 側 程 式 正 確 的 輸 出 應 該 如 下 : * *** ***** ******* ********* 在 不 修 改 右 側 程 式 之 第 4 行 及 第 7 行 程 式 碼 的 前 提 下, 最 少 需 修 改 幾 行 程 式 碼 以 得 到 正 確 輸 出? (A) 1 (B) 2 (C) 3 (D) 4 1 int k = 4; 2 int m = 1; 3 for (int

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 [email protected] 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

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

全国计算机技术与软件专业技术资格(水平)考试

全国计算机技术与软件专业技术资格(水平)考试 全 国 计 算 机 技 术 与 软 件 专 业 技 术 资 格 ( 水 平 ) 考 试 2008 年 上 半 年 程 序 员 下 午 试 卷 ( 考 试 时 间 14:00~16:30 共 150 分 钟 ) 试 题 一 ( 共 15 分 ) 阅 读 以 下 说 明 和 流 程 图, 填 补 流 程 图 中 的 空 缺 (1)~(9), 将 解 答 填 入 答 题 纸 的 对 应 栏 内 [ 说 明

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 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 [email protected] 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

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

Microsoft PowerPoint - os_4.ppt

Microsoft PowerPoint - os_4.ppt 行 程 資 科 系 林 偉 川 行 程 概 念 行 程 與 程 式 主 要 的 不 同 點 : 程 式 是 被 放 在 外 部 的 儲 存 裝 置 如 磁 碟 上, 而 行 程 則 被 放 在 記 憶 體 中 程 式 在 儲 存 裝 置 中 是 靜 態 的, 而 行 程 在 記 憶 體 中 是 動 態 的, 它 會 隨 著 一 些 事 件 的 發 生 而 產 生 相 對 的 改 變 行 程, 就 是

More information

第一章

第一章 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1500 1450 1400 1350 1300 1250 1200 15 16 17 18 19 20 21 22 23 24 25 26 27 28 INPUT2006 29 30 31 32 33 34 35 9000 8500 8000 7500 7000 6500 6000 5500 5000 4500 4000 3500

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

2013年全国农村妇女科学素质网络竞赛活动总结

2013年全国农村妇女科学素质网络竞赛活动总结 2013 年 全 国 农 村 妇 女 科 学 素 质 网 络 竞 赛 活 动 总 结 为 全 面 贯 彻 党 的 十 八 大 精 神, 落 实 全 民 科 学 素 质 行 动 计 划 纲 要 实 施 方 案 (2011 2015 年 ), 提 高 农 村 妇 女 运 用 互 联 网 获 取 农 业 生 产 科 学 生 活 低 碳 环 保 等 方 面 的 知 识 和 技 术, 引 导 农 村 妇 女

More information

“秦火火”玩“火”自焚

“秦火火”玩“火”自焚 学 习 参 考 (2014 年 第 5 期 ) 党 委 组 织 部 党 委 宣 传 部 二 〇 一 四 年 七 月 社 会 主 义 核 心 价 值 观 基 本 内 容 : 富 强 民 主 文 明 和 谐, 自 由 平 等 公 正 法 治, 爱 国 敬 业 诚 信 友 善 目 录 基 层 党 建 中 共 中 央 办 公 厅 印 发 2014-2018 年 全 国 党 员 教 育 培 训 工 作 规 划

More information

2014年9月月讯

2014年9月月讯 科 技 动 态 3 月 快 讯 ( 国 家 自 然 科 学 基 金 申 报 专 刊 ) 主 办 : 科 技 处 责 编 : 李 文 凤 校 对 : 李 伟 2015 年 总 第 20 期 太 原 理 工 大 学 科 技 信 息 QQ 群 号 :203560682 科 研 经 费 ( 单 位 : 万 元 ) 时 间 2015.1.1-2015.3.31 2014.1.1-2014.3.31 同 比 增

More information

1

1 1 2 3 4 5 6 7 渡 口 集 结 号 文 / 田 云 贵 8 三 局 的 发 源 地 在 四 川 渡 口 1965 年, 为 响 应 党 和 国 家 三 线 建 设 的 号 召, 大 批 施 工 单 位 和 人 员 来 到 这 里, 我 也 是 其 中 一 员 我 们 去 之 前, 从 未 听 说 过 渡 口, 今 天 人 们 也 已 经 无 法 从 地 图 上 找 到 这 个 地 方 事

More information

<4D6963726F736F667420576F7264202D2032303136C4EAD6D0BFBCD3EFCEC4C6C0BCDBD6B8C4CFA3A8B6A8B8E5A3A92E646F63>

<4D6963726F736F667420576F7264202D2032303136C4EAD6D0BFBCD3EFCEC4C6C0BCDBD6B8C4CFA3A8B6A8B8E5A3A92E646F63> 2016 年 上 海 市 初 中 语 文 课 程 终 结 性 评 价 指 南 一 评 价 的 性 质 目 的 和 对 象 上 海 市 初 中 毕 业 语 文 统 一 学 业 考 试 是 义 务 教 育 阶 段 的 终 结 性 评 价 它 的 指 导 思 想 是 有 利 于 落 实 教 考 一 致 的 要 求, 切 实 减 轻 中 学 生 过 重 的 学 业 负 担 ; 有 利 于 引 导 初 中 学

More information

目 录

目   录 2015 年毕业生就业质量年度报告 二〇一五年十二月 目 前 言...1 第 一 章 2015 届 毕 业 生 基 本 情 况...2 一 毕 业 生 总 体 情 况... 2 二 毕 业 生 生 源 地 分 布 状 况... 3 三 毕 业 生 性 别 分 布 状 况... 5 第 二 章 2015 届 毕 业 生 就 业 状 况...6 一 毕 业 生 基 本 就 业 状 况... 6 二 毕

More information