프로그래밍/[C++] 썸네일형 리스트형 [C++]용어정리 static 변수: 클래스 내에서 공유되는 변수 class Marine { static int total_marine_num;//클래스 내부에서 선언, 선언과 동시에 초기화 불가 private: ... int Marine::total_marine_num = 0;//클래스 외부에서 초기화 필요 static 함수: 객체별로 존재하는 것이 아닌 클래스별로 존재하는 함수, 객체없이 클래스에서 자체 호출 가능 static void show_total_marine(); void Marine::show_total_marine() { std::cout 더보기 [C++]변수 이름짓는법 https://google.github.io/styleguide/cppguide.html#Variable_Names Google C++ Style Guide Background C++ is one of the main development languages used by many of Google's open-source projects. As every C++ programmer knows, the language has many powerful features, but this power brings with it complexity, which in turn can make code more bug-pr google.github.io 해당문서를 잘 보자 더보기 [C++]class의 static 변수 함수, lnk2001, lnk1120오류 보호되어 있는 글입니다. 더보기 이전 1 다음