반응형
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 | 29 | 30 |
| 31 |
Tags
- leetcode
- c++
- event
- nodeJS
- css
- component
- JSX
- state
- MySQL
- array
- treenode
- bit
- Props
- UE5
- queue
- routes
- Callback
- priority_queue
- node.js
- Navigation
- React
- DP
- 비트연산
- axios
- route
- count
- BinaryTree
- server
- Context
- map
Archives
- Today
- Total
목록char (1)
우사미 코딩
[C++] char to int (char를 int로 변환하는 방법)
- 숫자로 이루어진 char에 - '0'을 붙이면 int로 변환할 수 있다 예제 vector cv = { '0', '1', '2', '3', '4', '5' }; vector iv = {}; // int vector for (auto i : cv) { iv.push_back(i - '0'); // char를 int로 변환하여 iv에 삽입 } for (auto i : iv) { cout
Programming (C++)/C++ 자료구조
2023. 4. 16. 14:49