일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
- 데이터 과학
- 딥러닝
- data science
- 빅 데이타
- 빅데이타
- WebGL
- 김양재 목사
- 우리들교회
- Deep learning
- 빅 데이터
- c++
- probability
- 확률
- 빅데이터
- Artificial Intelligence
- 통계
- openCV
- 김양재
- 인공지능
- nodeJS
- Statistics
- 김양재 목사님
- 몽고디비
- No SQL
- MongoDB
- Machine Learning
- Big Data
- node.js
- R
- 주일설교
- Today
- Total
목록String (3)
Scientific Computing & Data Science
1. 문자열이 비어 있거나, null 또는 undefined 인지 검사하는 함수function isEmpty(str) { return (!str || 0 === str.length); } 2. 문자열이 비어 있거나, 공란(white-space)만 가지고 있는지 검사하는 함수function isEmpty(str) { return ( str.length === 0 || !str.trim()); };
1. CString ▶ std::stringCString str = "hello";std::string stdStr = str.GetBuffer(0); 2. std::string ▶ CStringstd::string stdStr = "hello";CString str = stdStr.c_str();또는CString str("Hello"); // Convert a TCHAR string to a LPCSTR CT2CA pszConvertedAnsiString(str); // Construct a std::string using the LPCSTR input std::string s(pszConvertedAnsiString);
// // main.cpp // // Created by gchoi on 2014. 4. 30.. // Copyright (c) 2014년 gchoi. All rights reserved. // #include #include using namespace std; int main( int argc , const char * argv []) { string fruit1 , fruit2 ; fruit1 = "banana"; fruit2 = "apple"; fruit1.append (fruit2); cout