04장_함수와 기억클래스류

it cookbook 4 9 32 it cookbook 4 9

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: a, result; cout << "\n 정수값 하나를 입력하세요. => "; cin >> a; result = abs(a); // 함수의 결과값을 변수 result에 대입한다. cout <<" 구한 절대값은 " << result << " 이다. \n" ; } - 14 - IT COOKBOOK 2) 함수의 정의 선언 호출 IT COOKBOOK 함수의 함수의 선언 자료형 함수_이름(매개변수 리스트); - 15 - 2) 함수의 정의 선언 호출 IT COOKBOOK 함수의 함수의 선언 - 16 - 3) 선행처리자 IT COOKBOOK - 17 - 3) 선행처리자 IT COOKBOOK 매크로 매크로 상수 #define 매크로_상수 치환할_문자열_또는_상수 - 18 - 3) 선행처리자 IT COOKBOOK - 19 - [실습하기 4-5] 매크로 상수를 이용해 원의 면적 구하기 [예제 4-5] 4_6.cpp 01 02 03 04 05 06 07 08 09 10 #include<iostream.h> #define PI 3.141592 void main( ) { int r =...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern