1 / 15

프로그래밍 기초

프로그래밍 기초. 2014 년 4 월 1 일 화요일 7 시 성균관대학교 학생회관 316 호 성균 마이크로컴퓨터 연구회 ( SMSA ) 회장 양희성 제작. Review. 프로그래밍은 수단과 방법일 뿐이다 . 프로그래밍은 여러 분야와 융합할 때 진가를 발휘한다 . 프로그래밍은 생각하는 방법이다. 프로그래밍 언어. 인간의 언어 ↓ 코딩 C 언어

hu-bowers
Download Presentation

프로그래밍 기초

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 프로그래밍 기초 2014년 4월 1일 화요일 7시 성균관대학교 학생회관 316호 성균 마이크로컴퓨터 연구회 ( SMSA ) 회장 양희성 제작

  2. Review • 프로그래밍은 수단과 방법일 뿐이다. • 프로그래밍은 여러 분야와 융합할 때 진가를 발휘한다. • 프로그래밍은 생각하는 방법이다.

  3. 프로그래밍 언어 인간의 언어 ↓ 코딩 C언어 ↓ 컴파일 기계어

  4. 첫 번째 프로그램 #include <stdio.h> int main(void) { printf(“Hello World!\n”); //Hello World! 를 출력 return 0; }

  5. Main 함수 int main(void) int => 리턴 형식 main => 함수이름 void => 입력 형식

  6. 두 번째 프로그램 #include <stdio.h> int main() { float num; inti_part; float f_part; printf(“실수를 입력하세요 : ”); scanf(“%f”, &num); i_part= num; f_part = num – i_part; printf(“%f의 정수부는 %d이고, 실수부는%f 입니다.\n”, num, i_part, f_part); return 0; }

  7. 변수 -1 float num; inti_part; float f_part; 변수 형식변수이름

  8. 변수 - 2 Value 변수

  9. scANF함수 scanf(“%f”,&num); scanf(“%d”,&a); scanf(“%s”,ptr);

  10. Scanf참고 #pragma warning( disable : 4996)

  11. Scanf형식문자열

  12. Printf함수 printf(“%d”, 123); printf(“%f”, 12.34); printf(“%c”, ‘A’); printf(“%s”, “abc”);

  13. Printf형식문자열

  14. Printf(“ My name is %s ”, Name); char name[30] = “Yang”; printf(“ My name is %s ”, name); %s <-> Yang => My name is Yang

  15. 실습 이름, 나이, 학년, 학과를 입력받아 출력하는 프로그램

More Related