일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 자바스크립트
- string
- vector insert
- insomnia
- router
- MySQL
- HTTP
- ERD
- pm2
- 그래프 탐색
- 백준 9527번
- localstorage
- MongoDB
- 그리디
- Next
- Express.js
- trie
- DP
- ccw 알고리즘
- 트라이
- Prisma
- html5
- branch
- map
- Keys
- JavaScript
- 이분 탐색
- PROJECT
- Github
- 게임 서버 아키텍처
Archives
- Today
- Total
목록stringstream (1)
dh_0e
[C++] stringstream
stringstream문자열에서 동작하는 스트림 클래스입력 스트림인 istringstream, 출력 스트림인 ostringstream의 기능을 둘 다 포함하고 있음공백이나 '\n' 개행문자를 기준으로 값을 분리해줌string type의 문자열에서 원하는 자료형의 데이터를 추출할 수 있게 해줌 헤더 파일을 선언하고 사용 문자열을 공백, '\n'을 기준으로 분리#include #include #include using namespace std;int main(){ string n; string str = "abc d ef\n gh i1 2 3"; stringstream stream; stream.str(str); // = "stream=str" while(stream >> n..
C++
2024. 7. 22. 21:31