현재 시간과 분 알아오는 소스 {{{~cpp #include #include using namespace std; int main() { time_t current; tm *today; time(¤t); today = localtime(¤t); cout << today->tm_hour << endl; cout << today->tm_min << endl; return 0; } }}} ---- 보드 게임 방 관리 프로그램 첫번째 요구사항 - 테이블 3개 - 테이블 당 최대 4명 - 게임 3개 (jenga, citadell, pit) - 1인에 30분당 800원 (예를 들어 29분은 0원이지만 30분은 800원) {{{~cpp - in {table1, table2, table3} {1,2,3,4} - play {table1, table2, table3} {jenga, citadell, pit} - out {table1, table2, table3} }}} {{{~cpp >> in table3 2 table3 : 2 persons : in 3:00 >> play table3 pit table3 pit play >> in table2 3 table3 : 2 persons : in 3:30 >> play table2 pit have no pit >> play table3 jenga table3 jenga play >> play table2 pit table2 pit play >> out table3 3:00 ~ 4:00 : 2 persons : 3000 won }}} 두번째 요구사항 - 여러가지 예외 처리 - 음료수 사는 명령어 추가. 종류는 한개이고 한개당 500원. 나갈때 최종 계산에 더함. {{{~cpp - buy {table1, table2, table3} {1~} }}} {{{~cpp >> in table3 2 table3 : 2 persons : in 3:00 >> buy table3 3 table3 buy drink 3 >> out table3 3:00 ~ 4:00 : 2 persons : 3 drink :4500 won }}} ---- 요구조건충족소스 [보드카페 관리 프로그램/강석우] --- 엇나도 보드게임 만들고있는데.. - [임인택]