728x90
반응형
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// for checkg support C++ (using g++) | |
// | |
// g++ -std=c++98 main.cpp | |
// g++ -std=c++03 main.cpp | |
// g++ -std=c++0x main.cpp | |
// g++ -std=c++11 main.cpp | |
// g++ -std=c++14 main.cpp | |
// g++ -std=c++17 main.cpp | |
#include <iostream> | |
using namespace std; | |
int main(){ | |
int cpp = (int) __cplusplus; | |
int year = cpp / 100; // 1997 ... 2017 | |
int month = cpp % 100; | |
cout << "Year:" << year << " Month:" << month << endl; | |
return 0; | |
} |
728x90
반응형
'C C++' 카테고리의 다른 글
curl & libcurl 7.62.0 for Visual Studio 2017 (0) | 2018.10.06 |
---|---|
[C++] unique_ptr, shared_ptr, weak_ptr (0) | 2018.09.13 |
xlnt (5) msys2 에서 xlnt 빌드 하기 (0) | 2018.03.28 |
C++ 람다(lambda) 표현식 이해와 활용 예제 (0) | 2018.02.12 |
Gammaray binary for Qt 5.10/MingW(32bit) (0) | 2018.01.15 |