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
- OOP
- 파이썬
- baekjoon
- vscode
- function
- pass by reference
- string
- Data Science
- C++
- Pre-processing
- 배열
- Python
- 백준
- Object Oriented Programming
- programming
- pointer
- const
- 함수
- 포인터
- Deep Learning
- 오블완
- array
- 반복문
- 알고리즘
- raw data
- assignment operator
- predictive analysis
- 문자열
- Class
- 티스토리챌린지
Archives
- Today
- Total
목록std (1)
Channi Studies
[c++] using namespace std;
c++ 에서 기본적인 입출력 연산자인 cin, cout 등 명령어를 사용할 때 std::cout을 사용합니다. 그 이유는 소속을 나타낸다고 해석하면 편리합니다. std가 아닌 다른 namespace 에도 cin, cout 명령어가 존재할 수 있습니다. 이런 경우를 대비해서, 명령어 앞에 소속 namespace를 명시해서 사용하는 것입니다. 하지만 std::를 반복하여 붙이는 것은 꽤나 귀찮은 일이기에, using namespace std; 라는 명령어를 포함하여 std를 생략할 수 있습니다. 가령 다음과 같은 코드가 있다면, #include int main(){ std::cout
C++/기타
2023. 12. 5. 11:54