| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- React
- JSX
- 비트연산
- DP
- priority_queue
- queue
- count
- UE5
- node.js
- routes
- Context
- state
- bit
- server
- axios
- map
- leetcode
- Callback
- css
- component
- Props
- nodeJS
- c++
- BinaryTree
- route
- treenode
- event
- MySQL
- Navigation
- array
- Today
- Total
목록Programming (C++)/C++ (4)
우사미 코딩
1. char to int : char이 알파벳인 경우 char c = 'a'; int start0 = c - 'a'; // a = 0; int start1 = c - 'a' + 1; // a = 1; cout
- the ASCII values of all 26 uppercase alphabet characters are 65–90 A : 65, B : 66 ....... Z : 90 - the ASCII values of all 26 lowercase alphabet characters are 97–122 a : 97, b: 98 .... z: 122 string s = "Test"이고 대문자를 소문자로 변환해야 할 때 if(s[i] >= 65 && s[i] = 'A' && s[i]
1. 코드 #include // std::cout #include // std::istringstream using namespace std; int main() { string words = "I have a dream"; istringstream in(words); int i = 0, n = words.size(); for (string s; in >> s; i++) { cout