(C++)04.4 복합 데이터 유형 – 구조
– 관련 정보를 그룹화하여 하나의 단위로 저장할 수 있습니다. – C++에서 구조체는 객체지향 프로그래밍의 핵심인 ‘클래스’의 기반이다. – 사용자 정의 데이터 유형 struct inflatable // 구조체 선언 { char name(20); float volume; double price; }; 예 // structur.cpp — 간단한 구조체 #include <iostream> struct inflatable // 구조체 선언 { char name(20); float volume; double price; … Read more