Script/Modern C++11 [Modern C++] Chapter 11. 스마트 포인터 (smart pointer) GitHub : https://github.com/developeSHG/Modern-C/blob/a30dc0a22e2afcdb8ae81e9ca9e3f46fb125ab66/Modern%20C%2B%2B/Modern%20C%2B%2B/%EC%8A%A4%EB%A7%88%ED%8A%B8%20%ED%8F%AC%EC%9D%B8%ED%84%B0%20(smart%20pointer).cpp GitHub - developeSHG/Modern-C: Modern C++ Modern C++. Contribute to developeSHG/Modern-C development by creating an account on GitHub. github.com 스마트 포인터 사용X #include #include using names.. 2023. 5. 23. [Modern C++] Chapter 10. 람다 (lambda) GitHub : https://github.com/developeSHG/Modern-C/blob/a30dc0a22e2afcdb8ae81e9ca9e3f46fb125ab66/Modern%20C%2B%2B/Modern%20C%2B%2B/%EB%9E%8C%EB%8B%A4%20(lambda).cpp GitHub - developeSHG/Modern-C: Modern C++ Modern C++. Contribute to developeSHG/Modern-C development by creating an account on GitHub. github.com #include #include using namespace std; // 주제 : 람다(lambda) // 함수 객체를 빠르게 만드는 문법 enum class.. 2023. 5. 23. [Modern C++] Chapter 09. 전달 참조 (forwarding reference) GitHub : https://github.com/developeSHG/Modern-C/blob/a30dc0a22e2afcdb8ae81e9ca9e3f46fb125ab66/Modern%20C%2B%2B/Modern%20C%2B%2B/%EC%A0%84%EB%8B%AC%20%EC%B0%B8%EC%A1%B0%20(forwarding%20reference).cpp GitHub - developeSHG/Modern-C: Modern C++ Modern C++. Contribute to developeSHG/Modern-C development by creating an account on GitHub. github.com 오른값이라는 개념으로 인해 template이나 auto같이 형식을 연역하는 부분에 있어 오른값.. 2023. 5. 23. [Modern C++] Chapter 08. 오른값 참조 (rvalue reference) GitHub : https://github.com/developeSHG/Modern-C/blob/a30dc0a22e2afcdb8ae81e9ca9e3f46fb125ab66/Modern%20C%2B%2B/Modern%20C%2B%2B/%EC%98%A4%EB%A5%B8%EA%B0%92%20%EC%B0%B8%EC%A1%B0%20(rvalue%20reference).cpp GitHub - developeSHG/Modern-C: Modern C++ Modern C++. Contribute to developeSHG/Modern-C development by creating an account on GitHub. github.com 프로그래밍을 할 때 는 안전하게 할 수 밖에 없는데 안전을 위해 인수로 받은 값을 함.. 2023. 5. 23. [Modern C++] Chapter 07. override, final GitHub : https://github.com/developeSHG/Modern-C/blob/a30dc0a22e2afcdb8ae81e9ca9e3f46fb125ab66/Modern%20C%2B%2B/Modern%20C%2B%2B/override%2C%20final.cpp GitHub - developeSHG/Modern-C: Modern C++ Modern C++. Contribute to developeSHG/Modern-C development by creating an account on GitHub. github.com class Creature { public: virtual void Attack()// 가상함수의 첫 시작은 virtual 키워드. { cout 2023. 5. 22. [Modern C++] Chapter 06. delete GitHub : https://github.com/developeSHG/Modern-C/blob/a30dc0a22e2afcdb8ae81e9ca9e3f46fb125ab66/Modern%20C%2B%2B/Modern%20C%2B%2B/delete.cpp GitHub - developeSHG/Modern-C: Modern C++ Modern C++. Contribute to developeSHG/Modern-C development by creating an account on GitHub. github.com class Knight { private: // 정의되지 않은 비공개(private) 함수 void operator=(const Knight& k); // 하지만 외부에서만 막았을 뿐, private로.. 2023. 5. 22. [Modern C++] Chapter 05. enum class GitHub : https://github.com/developeSHG/Modern-C/blob/a30dc0a22e2afcdb8ae81e9ca9e3f46fb125ab66/Modern%20C%2B%2B/Modern%20C%2B%2B/enum%20class.cpp GitHub - developeSHG/Modern-C: Modern C++ Modern C++. Contribute to developeSHG/Modern-C development by creating an account on GitHub. github.com // 주제 : enum class // unscoped enum (범위없는) enum PlayerType : char { Knight = 5, Archer, Mage } enum Monste.. 2023. 5. 22. [Modern C++] Chapter 04. using GitHub : https://github.com/developeSHG/Modern-C/blob/a30dc0a22e2afcdb8ae81e9ca9e3f46fb125ab66/Modern%20C%2B%2B/Modern%20C%2B%2B/using.cpp GitHub - developeSHG/Modern-C: Modern C++ Modern C++. Contribute to developeSHG/Modern-C development by creating an account on GitHub. github.com // 주제 : using typedef vector::iterator VecIt; typedef __int64 id; using id2 = int; // 1) 직관성 // 예시. 함수포인터 typedef.. 2023. 5. 22. [Modern C++] Chapter 03. nullptr GitHub : https://github.com/developeSHG/Modern-C/blob/a30dc0a22e2afcdb8ae81e9ca9e3f46fb125ab66/Modern%20C%2B%2B/Modern%20C%2B%2B/nullptr.cpp GitHub - developeSHG/Modern-C: Modern C++ Modern C++. Contribute to developeSHG/Modern-C development by creating an account on GitHub. github.com #include using namespace std; // 주제 : nullptr void Test(int a) { cout 2023. 5. 22. [Modern C++] Chapter 02. 중괄호 초기화 { } GitHub : https://github.com/developeSHG/Modern-C/blob/a30dc0a22e2afcdb8ae81e9ca9e3f46fb125ab66/Modern%20C%2B%2B/Modern%20C%2B%2B/reset.cpp GitHub - developeSHG/Modern-C: Modern C++ Modern C++. Contribute to developeSHG/Modern-C development by creating an account on GitHub. github.com #include using namespace std; // 주제 : 중괄호 초기화 { } class Knight { public: }; int main() { // 중괄호 초기화 { } int a = 0.. 2023. 5. 22. 이전 1 2 다음