C++ 13일차 동적 할당 C++ 동적할당 C++에서는 동적으로 변수나 배열을 할당 할수 있는데 다음 예제를 보면서 해봅시다. 1234567891011121314151617#include #include using namespace std; int main() { int *a = new int(5); cout 더보기 C++ 12일차 C++ 12일차 연산자 오버로딩 1234567891011121314151617181920212223242526272829303132333435363738394041424344#include #include using namespace std; class Vector2 {public: Vector2(); Vector2(float x, float y); float GetX() const; float GetY() const; Vector2 operator+(const Vector2 rhs) const;private: float x; float y;}; Vector2 Sum(Vector2 a, Vector2 b) { return Vector2(a.GetX() + b.GetX(), b.GetX() + b.GetY.. 더보기 fake ebp에 잘 알수 있는 사이트 http://blog.naver.com/PostView.nhn?blogId=noish&logNo=100050649974&parentCategoryNo=94&categoryNo=&viewDate=&isShowPopularPosts=false&from=postView 더보기 이전 1 ··· 8 9 10 11 12 13 14 ··· 18 다음