实验一
实验二
实验三
实验四
实验五
实验六
实验七
实验八
实验九
高级语言程序设计(双语)
首页
| 负责人 | 课程介绍 | 教学大纲 | 教案 | 课件 | 考试大纲 | 实训内容


实验一  The C compiler environment and run C program

(一)实验目的

Familiarize C compiler environment,Learning how to run C program.

(二)实验项目内容

1. Some Tests With Programming.

Enter this program:

#include "stdio.h"

#include "conio.h"

main()

{  printf("hello the C world!\n");

  getch();

}

2. Some Tests With Data type.

Enter this program:

#include "stdio.h"

#include "conio.h"

main()

{int a,b;

a=32767;

b=a+1;

 printf("a=%d, b=%d ",a,b);

 getch();

}

3. More Tests With Data type.

Enter this program:

#include "stdio.h"

#include "conio.h"

main()

{int a1,a2;

char c1,c2;

 printf("\n please input two character:");

scanf("%c,%c",&c1,&c2);

a1=c1;

a2=c2;

printf("\n c1=%c,c2=%c \n a1=%d,a2=%d\n",c1,c2,a1,a2);

 getch();

}

(三)主要仪器设备

computer

(四)实验室名称

     computer lab

(五)实验报告撰写

     Document the output for the report. You don't have to write all the sections in the report. Just paste the program and its output in a word file.