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 |
Tags
- Unreal Engine 5
- Unity
- DP
- C#
- 재귀
- w3school
- 오류
- python
- 문제풀이
- loop
- String
- Tutorial
- W3Schools
- 시작해요 언리얼 2022
- guide
- Material
- parameter
- 백준
- Class
- dynamic
- Basic
- dfs
- github
- UE5
- Algorithm
- 파이썬
- 기초
- Programming
- c++
- 프로그래밍
Archives
- Today
- Total
행복한 개구리
C++ Tutorial - Strings / Omitting Namespace 본문

네임스페이스 생략하기
당신은 표준 네임스페이스 라이브러리 없이 작동하는 C++ 프로그램을 봤을 수 있습니다. using namespace std 줄은 string (그리고 cout ) 객체를 위한 :: 연산자와 함께 std 키워드로 대체되어 생략될 수 있습니다.
예시
#include <iostream>
#include <string>
int main() {
std::string greeting = "Hello";
std::cout << greeting;
return 0;
}

'C++ > 공부내용' 카테고리의 다른 글
| C++ Tutorial - Booleans / Boolean Values (0) | 2022.06.14 |
|---|---|
| C++ Tutorial - Math (0) | 2022.06.14 |
| C++ Tutorial - Strings / User Input Strings (0) | 2022.06.13 |
| C++ Tutorial - Strings / Access Strings (0) | 2022.06.13 |
| C++ Tutorial - String / String Length (0) | 2022.06.13 |