2001 ÀÎÅͳÝ공학부 고급정보처리 1

C언어는 모든 분야에서 응용이 가능한 범용 시스템 프로그래밍 언어이다. 문장의 간결성, 현대적인 제어 구조와 자료 구조 그리고 많은 연산자를 자랑으로 하는 C언어를 공부한다. 상세하고 충실한 예제와 다양한 연습문제들을 직접적으로 다룸으로써 학생 스스로 교과 내용을 학습하고 깊이있게 이해할수 있도록 가르친다. 본 강좌는 C Language의 문법과 구조에 대한 개념 설명, 그리고 실습을 통하여 C 프로그래밍의 능력을 배양하는 것을 목표로 한다. (평가방법 : 출석: 20%, 과제: 20%, 중간고사: 30%, 기말고사: 30%)

Text

[01.3.6,8] Introduction
  • Introduction to Unix
  • djgpp is a complete 32-bit C/C++ development system for Intel 80386 (and higher) PCs running DOS. It includes ports of many GNU development utilities. The development tools require a 80386 or newer computer to run, as do the programs they produce. In most cases, the programs it produces can be sold commercially without license or royalties (kowon)
PROGRAM 0 : helloworld.c

#include <stdio.h>

int main(void)
{
    printf("Hello, world!\n");
    return 0;
}

[01.3.13,15,20,22] Lexical elements, Operators, and the C System
PROGRAM 1 : exec_number.c
// ÇÑ ÀåÀÌ ³¡³ª¸é ´ÙÀ½ ÇÁ·Î±×·¥¿¡¼­ ³ª¿À´Â ¿¬½À¹®Á¦¹øÈ£¸¦ Ç®¾î¼­ ÀÚ½ÅÀÇ È¨ÆäÀÌÁö¿¡ µî·ÏÇÏ½Ã¸é µË´Ï´Ù.
//
Á¦Ãâ±âÇÑÀº 2ÀåÀÇ °æ¿ì ¼ö¾÷½Ã°£ÀÌ ¾Æ·¡¿Í °°ÀÌ 3¿ù 20,22ÀÏ¿¡ ³¡³ª¸é ¿©±â¿¡¼­ 2ÁÖ ÈÄ ÀÔ´Ï´Ù.
//
[01.3.13,15,20,22] Lexical elements, Operators, and the C System
//
Áï, 4¿ù 3,5ÀÏ 24:00ºÐ ±îÁö ÀÔ´Ï´Ù. ¿©±â¿¡¼­ ½ÉÈ­ÇнÀÁÖ°£,±â³äÀÏ, °øÈÞÀϵîÀº °í·ÁÇÏÁö ¾Ê½À´Ï´Ù. 


#include <stdio.h>
#define SKIP 5

main()
{
  int i, pcnum, mpcnum, exnum;

  printf("Enter your PC number(1~80) : ");
  scanf("%d", &pcnum);
  mpcnum = pcnum%SKIP;
  printf("Enter the last exercise number : ");
  scanf("%d", &exnum);
  printf("My homework exercise number : ");
  for(i=1; i<=exnum; i++)
    if(i%SKIP == mpcnum) printf("%d ", i);
  printf("\n");
  getchar();
}

[01.3.27,29,4.3] The Fundamental Data Types

[01.4.10,12] Flow of control

[01.4.17,19,5.3,15] Functions

[01.4.24,26] Midterm Exam (ex1 ex2)

[01.5.17,22] Arrays, Pointers, and Strings

[01.5.24,29] Bitwise Operators and Enumeration Types

[01.5.31,6.5] The Preprocessor

[01.6.7,12] Structures and Unions

[01.6.7,12,14] Input/Output and Operating System

[01.618~22] Finalterm Exam 

¡¡


[Last Update: 2001.5.24] Dongseo University Cyber Campus