Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 유니티
- 유니티 머신러닝
- LFS
- 코드블럭 테마
- 유니티 Collision
- unity
- ML-Agents
- git-lfs
- Raycast
- LayerMask
- eulerAngles
- c++ 문자열 자르기
- 너비 우선 탐색
- 오브젝트 풀링
- Mathf.Clamp
- 유니티 리소스매니저
- Quaternion.Euler
- 유니티 Rotate
- 유니티 오브젝트 풀링
- LookRotation
- 소스코드 줄번호
- c++
- 유니티 Vector3
- 깊이 우선 탐색
- 유니티 InputManager
- 유니티 시야 가림
- InputManager
- 이진트리
- 알고스팟
- 유니티 ResourceManager
Archives
- Today
- Total
반응형
목록istringstream (1)
무민은귀여워

문자열이 주어졌을 때, 공백 단위로 단어를 나누는 방법 ex) 문자열 "apeach frodo muzi" 을 "apeach", "frodo", "muzi" 로 나누어 저장 단어 갯수를 알 경우 1. substr 2. istringstream 단어 갯수를 모를 경우 3. stringstream 4. strtok 1. substr #include #include using namespace std; int main() { string str = "apeach frodo muzi"; vector names; for (int i = 0; i < 3; i++) { names.push_back(str.substr(0, str.find(" "))); str = str.substr(str.find(" ") + 1); ..
IT/c, c++
2022. 5. 20. 18:37
반응형