전체 글110 string join 문자열 합치기 boost join 라이브러리 사용 std::vector list;list.push_back("Hello");list.push_back("World!");std::string joined = boost::algorithm::join(list, ", "); 결과 : "Hello, World!" std 사용 std::vector list;list.push_back("Hello");list.push_back("World!");std::string delimiter = ", "; 이렇게?std::accumulate(list.begin(), list.end(), string(), [&delimiter](const std::string& lhs, const std::string& rhs) { return lhs +.. 2018. 3. 9. [Dark Souls 2] 다크소울즈2 플래티넘 달성 다크소울즈2 플래티넘 달성공략은 역시나 루리웹~ 태양의 후계자 계약으로 태양창을 가장마지막에 얻어서 플래티넘 달성..3회차는 소울 결정창 노가다 한 후 흰팬으로 보스 헬프 다녀서 달성함 2015. 7. 27. vs visualizer utf-8 vs visualizer utf-8비주얼 스튜디오 에서 utf8 보기 (std::string) 다음 폴더 내에 natvis 파일을 만들어 넣어준다 %VSINSTALLDIR%\Common7\Packages\Debugger\Visualizers (requires admin access)%USERPROFILE%\My Documents\Visual Studio 2012\Visualizers\VS extension folders utf8.stl.natvis 같은 이름으로해서.. {_Bx._Buf,s8} {_Bx._Ptr,s8} _Bx._Buf,s8 _Bx._Ptr,s8 2014. 11. 22. GIT DiffMerge 설정. .gitconfig 파일 수정 [merge] tool = diffmerge [mergetool "diffmerge"] path = C:/Program Files/SourceGear/Common/DiffMerge/sgdm.exe cmd = \"C:/Program Files/SourceGear/Common/DiffMerge/sgdm.exe\" --merge --result=$MERGED $LOCAL $BASE $REMOTE trustExitCode = true [diff] tool = diffmerge [difftool "diffmerge"] path = C:/Program Files/SourceGear/Common/DiffMerge/sgdm.exe cmd = \"C:/Program Files/SourceG.. 2011. 11. 5. GIT 명령어 요약.. git bash 에서 실행하는 명령어 입니다. 원격 저장소에서 로컬로 복사 해오기 git clone username@192.168.0.1:/project/ c:\work 원격 저장소에서 최신 코드 받아오기 git checkout master (master 브랜치로 이동) git fetch git rebase origin/master 원격 저장소 branch 만들기 git push origin temp:temp (로컬):(원격) 원격 저장소 branch 가져오기 git checkout -b temp origin/temp (로컬) (원격) 원격 저장소 branch 지우기 git branch -rd origin/temp git push origin :heads/temp 2011. 10. 26. visual studio 파일 저장시 utf8로 저장되게 하는방법 및 white space 제거 출처 : http://nving.tistory.com/66 출처 : http://ko.w3support.net/index.php?db=so&id=82971 매크로 에디트에 가서 MyMacros 에 EnvironmentsEvents에 아래와 같이 추가한다. MakeUTF8File 함수는 파일이 저장된후 utf8검사해서 인코딩 변경해서 저장을 다시한다. DelWhiteSpaceEndOfLine 함수는 파일의 각 라인 끝에 white space 제거한다. Imports System.IO Sub MakeUTF8File(ByVal path As String) Dim input As New FileStream(path, FileMode.Open) 'Check BOM Dim isUTF8 As Boolean = (in.. 2011. 10. 4. Python 에서 xml 사용하기. element tree 를 사용.. Python 에서 xml 사용하기. element tree 를 사용.. 파이썬 홈페이지 http://www.python.org/ element tree 페이지. (python 3.2) http://docs.python.org/py3k/library/xml.etree.elementtree.html ----------------------------------- xml 파일 내용... ----------------------------------- #-*- coding: utf-8 -*- import os from xml.etree.ElementTree import ElementTree tree = ElementTree() tree.parse('test.xml') ### root root = tree.get.. 2011. 8. 19. Python 삼항연산자 사용방법.. C 스타일 var = condition ? true : false; Python 스타일 ( 2.5 버전 이상부터 가능하다고 한다. 확인해 보진 않았음. ) var = True if condition else False condition이 참이면 앞의 변수사용 condition이 거짓이면 뒤의 변수사용 C 스타일과 순서가 다르고 기호가 아닌 조건문이 들어간다. C : 1 ? 2 : 3 Python : 2 if 1 else 3 2011. 8. 18. 이전 1 ··· 7 8 9 10 11 12 13 14 다음