[C++] 구조체를 써서 축구팀을 만들어 보자
#include #include using namespace std; struct SoccerPlayer { string name; int age; string position; string club; }; void main() { SoccerPlayer soccerPlayerA; soccerPlayerA.name = "오사쯔"; soccerPlayerA.age = 28; soccerPlayerA.position = "미드필더" ; soccerPlayerA.club = "경일마드리드"; SoccerPlayer soccerPlayerB; soccerPlayerB.name = "손흥민"; soccerPlayerB.age = 30; soccerPlayerB.position = "윙어"; soccerPlayer..
2022.05.31