MFC ※ UniCode // CString -> int convert CString strNum = _T("5"); int nNum = _ttoi(strNum); // int -> CString convert int nNum = 5; CString strNum; strNum.Format(_T("%d"), nNum); // CString -> double CString strNum = _T("5.5"); double nNum = _wtof(strNum); // double -> CString double nNum = 5.5; CString strNum; strNum.Format(_T("%f"), nNum); ※ Multibyte _ttoi -> atoi _wtof -> atof 링크 : http://fr..
읽기전용으로 List를 생성함. List에 modify 가 일어나면 UnsupportedOperationException 이 발생 List list = new anyList(); // any list (ArrayList, LinkedList other..) list.add(any); List readOnlyList = java.util.Collections.unmodifiableList(list); readOnlyList.get(index); // OK readOnlyList.set(index, any); // throw UnsupportedOperationException readOnlyList.add(any); // throw UnsupportedOperationException readOnlyLis..
- Total
- Today
- Yesterday