일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- raw data
- 티스토리챌린지
- Object Oriented Programming
- string
- programming
- pass by reference
- 문자열
- 포인터
- baekjoon
- 파이썬
- 반복문
- pointer
- predictive analysis
- assignment operator
- 알고리즘
- 오블완
- Data Science
- OOP
- vscode
- Deep Learning
- const
- 배열
- array
- 백준
- Python
- Pre-processing
- function
- 함수
- Class
- C++
- Today
- Total
목록전체 글 (150)
Channi Studies
iomanip library를 활용하면 실수형 자료를 출력할 때, 소수점 몇번째 자리에서 반올림을 할 지 결정할 수 있습니다. 형식 // FORMAT # include cout
형식 // FORMAT for (var_type var_name: sequence){ statements;// can use var_name } 예시 코드 // Example Code #include using namespace std; int main(){ vector my_vec {10, 50, 22, 501, 1930}; for (int num:my_vec) { cout
Conditional Operator는 다음과 같은 형식으로 사용됩니다. variable = (cond_expr) ? expr1 : expr2 다음은 예시 코드입니다. #include using namespace std; int main(){ int a{10}, b{20}; int score {92}; int result {}; // a > b 이면 result = a, b > a 이면 result = b result = (a > b) ? a : b; // score > 90 이면 Excellent! 출력 // score b) ? a : b; 는 다음과 동일합니다 if (a > b) { result = a; }else{ result = b; } 여러 줄의 if-else문을 한줄로 치환할 수 있기 때문에,..