Course.h
#include <iostream> class Course { |
Course.cpp
#include "Course.h" void Course::setName(char n[10]) { void Course::addStudent(char s[10]) { void Course::getStudents(char s[][10]) { int Course::getNum() { |
Course_main.cpp
#include "Course.h" int main() { char name[10]; cout << "과정명 입력:"; c1.setName(name); cout << "수강학생 입력:" << endl; char student[10]; while(key == 'y') { cout << "이름:"; cout << endl << "수강학생 명단:" << endl; |
'프로그래밍언어 > C & CPP' 카테고리의 다른 글
ㅇㅇ (0) | 2014.07.25 |
---|---|
클래스 생성자 예제 (0) | 2014.07.24 |
클래스 실습 1 풀이 - 몸무게 상태 계산 (0) | 2014.07.23 |
클래스 파일 생성 (0) | 2014.07.23 |
학생 성적 처리 프로그램 (0) | 2014.07.23 |