중간고사 공지 (26일 강당에서 본다.)

1. 객체지향이란

2. 객체지향 개념

3. 프로그램 분석

test.cpp

// 첫 번째 예제 프로그램

#include <iostream>  // 헤더 파일
using namespace std; // 이름 공간 설정

int main(void)
{
		cout << "Hello World!" << endl;  // 화면에 문자열 출력
		return 0;
}

<aside> ➡️ Hello World!

</aside>

4. 입출력 객체

#include <iostream>
#include <string>
using namespace std;

int main(void)
{
		string name;
		cout << "이름을 입력하시오:";
		cin >> name;
		cout << name << "을 환영합니다." << endl;
		return 0;
}