본문 바로가기

Programming

(40)
Visual Studio 2005 TaskList 토큰 추가 적용이 안 될 때 토큰 이름 입력 후 추가를 하고, 확인을 눌렀음에도 Visual studio를 껐다 켰을 때 적용이 안된다면 ( VS 2005 기준 ) 내문서 - Visual Studio 2005 - Settings 에서 현재 적용중인 셋팅 파일을 열어서 TODO:2 HACK:2 UNDONE:2 UnresolvedMergeConflict:3 CommentToken 항목을 찾아서 원하는 내용을 추가하면 된다. ※ 토큰의 총 갯수는 ArrayElementCount의 값과 동일해야한다. ex) TODO:2 HACK:2 UNDONE:2 UnresolvedMergeConflict:3 WTF:3 TEST:3 TEMP:3 토큰 이름 : 우선순위 우선순위는 3(! 높음), 2(보통), 1(↓ 낮음) 순이다.
cocos2d-x 3.17.2 - API ‘variant.getMergeAssets()’ is obsolete variant.mergeAssets.doLast { copy { from "${buildDir}/../../../Resources" into "${buildDir}/intermediates/assets/${variant.dirName}" exclude "**/*.gz" } } 를 variant.mergeAssetsProvider.get().doLast { copy { from "${buildDir}/../../../Resources" into "${buildDir}/intermediates/assets/${variant.dirName}" exclude "**/*.gz" } } 로 변경하면 된다. variant.mergeAssets.doLast -> variant.mergeAssetsProvider.get..
cocos2d-x 3.17.2 Expression: child != nullptr 에러 전에 사용했던 3.17 버전에서, 컴퓨터를 바꾸면서 3.17.2 버전으로 올렸다 ( https://github.com/cocos2d/cocos2d-x/releases ) 이런 에러를 보게 되었는데, 처음엔 Node쪽 문제인줄 알고 DrawNode를 생성, 위치 설정하고 addChild를 했으나 아무런 문제가 없었다. 이런 저런 시도를 해본 결과 옆의 에러는 이미지가 없을 경우 뜨는 에러였고, 의도된 부분인지, 아니면 전에 바뀐건데 3.17.1를 거치지 않고 3.17.2로 넘어와서 몰랐던 건진 모르겠으나 FileUtils의 파일 경로에 Resources 폴더 경로가 빠져있다. AppDelegate.cpp 에 FileUtils::getInstance()->addSearchPath( "Resources" );..
[ 작업 예정 ]Firebase < - > PC C++ 보호되어 있는 글입니다.
텍스트에서 입력 받은 단어의 개수 찾기 Header #include #include #include #include #include using namespace std; class SearchWord { public: SearchWord(); SearchWord( wstring, wstring ); ~SearchWord(); private: vector vBool; wstring txt = L""; wstring word = L""; size_t szWord = 0; int nWordIndex = 0; int nTxtIndex = 0; int nSearchCount = 0; private: bool check(); public: int isEqaul(); public: int getCount(){ return this->nSearchCount..
Visual Studio - An exception has been encountered this may be caused by an extension. An exception has been encountered this may be caused by an extension. 캐쉬 충돌로 인한 에러 해당 경로에 있는 파일을 지우고 vs다시 실행 더보기 특정 cpp파일을 열었을때 저 에러가 뜨기에 해당 cpp 파일을 닫고 하니 에러가 사라짐.
operator overloading Struct를 만들고(complex 행렬 2x2 관련 구조체) 해당 구조체를 곱했을때에 대한 계산을 위하여 연산자 * 오버로딩. 첫시도 - CustomStruct A; CustomStruct B; CustomStruct C; CustomStruct& operator*(const CustomStruct& _b, const CustomStruct& _t) { complex _rA = (_b.a * _t.a) + (_b.b * _t.c); complex _rB = (_b.a * _t.b) + (_b.b * _t.d); complex _rC = (_b.c * _t.a) + (_b.d * _t.c); complex _rD = (_b.c * _t.b) + (_b.d * _t.d); return CustomStruc..
문자열 수식을 입력받아 계산하기 문자열 수식을 입력받아 계산하고, 이를 문자열로 리턴시키는 코드. 인터넷에 찾아보니 대부분 스택으로 해서.. 나는 내가 편한 벡터를 이용하여 짰음. 기본조건 1. 수식에 괄호가 없어야하며 2. 입력되는 숫자는 1~9