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
- 함수
- C++
- Pre-processing
- 백준
- pass by reference
- raw data
- OOP
- string
- pointer
- baekjoon
- 문자열
- 포인터
- 파이썬
- 오블완
- Deep Learning
- array
- assignment operator
- Python
- 배열
- programming
- function
- Object Oriented Programming
- 알고리즘
- const
- Class
- 반복문
- vscode
- predictive analysis
- 티스토리챌린지
- Data Science
Archives
- Today
- Total
목록2023/12/07 (4)
Channi Studies
lhs op= rhs 의 방식으로 작동한다. ex) cost += item * tax // cost = cost + (item * tax)
C++/기타
2023. 12. 7. 17:23
C++에서 boolean값을 기본적으로 1 for true, 0 for false로 출력된다. 하지만, true/false로 출력되는 것이 더욱 유용한 경우도 많다. 이럴 때, 코드에 cout
C++/기타
2023. 12. 7. 12:33
[C++] 정수끼리의 나눗셈
C++에서 정수끼리 나눗셈을 하게 되면, 소수점 이하의 숫자는 버려집니다. #include using namespace std; int main(){ int num1 = 10; int num2 = 3; float result = num1 / num2; cout
C++/기타
2023. 12. 7. 12:21
[C++] Increment/Decrement Operator (증감연산자) ++, --
증감 연산자는 대상 값을 1씩 증가 혹은 감소시킵니다. (variable++: variable = variable + 1) (variable--: variable = variable - 1) 로 이해하면 좋습니다. 증감 연산자는 정수, 실수, 포인터 변수에서 사용 가능합니다. 증감 연산자에는 두가지 notation이 있습니다. Prefix notation: ++num Postfix notation: num++ 각각 증감 연산을 statement 이전에 적용할 지, statement 실행 이후에 적용할지를 결정합니다. // 증감 연산자 사용 예시 #include using namespace std; int main(){ int counter {10}; cout
C++/기타
2023. 12. 7. 12:10