class

    [c++] 클래스 속 클래스의 관계에서 private를 사용할 수 있는가?

    1. 키워드inclass, c++,c, class,private, protected, public,error, within, this, context, nested class,inner, 2.아래의 코드의 관계에선 에러가 뜬다. private란다. pickup이. #include class Test { class In{ private: void pickup(int data) { printf("data : %d\n", data); } }; public: int data; Test() { printf("create Test class\n"); In inclass; data = 5; inclass.pickup(data); } private: }; 3.class속의 class의 구조가 어떤 이름을 정의 되어 있..

    [class] mgString

    http://www.sea-of-memes.com/documentation/mgUtil/mgString.html mgString은 const char*과 비슷하게 보면 되지만 UTF-8 fotmat string으로 가정하게 하는 예약어이다. Class mgStringDeclared in: mgUtil/Util/mgString.hA variable-length string class. Wherever arguments are "const char*", these are assumed to be UTF-8 format strings. WCHAR arguments should be Unicode string constants, which are handled differently under each platf..

    [curl] class로 만들시 에러코드 해결

    [class name].cpp: In member function ‘void [class name]::downloadFile(const char*, const char*)’:[class name].cpp:44:9: error: invalid use of member (did you forget the ‘&’ ?) curl을 하는데 class로 옴겼더니 동작 안되는 분들 참고하세요. 이 문제는 핸들러 함수를 static으로 선언하지 않아서 생긴 문제이다. 참고하면 시간을 아낄 수 있다. 아래 들어가서 읽으보면 바로 고쳐진다.. 이런.. http://stackoverflow.com/questions/4224722/curl-writefunction-and-classes