티스토리 뷰
#include <iostream>
using namespace std;
int main()
{
// Standard Predefined Macros
cout << "File: " << __FILE__ << endl;
cout << "Line: " << __LINE__ << endl;
cout << "Func: " << __func__ << endl;
cout << "Date: " << __DATE__ << endl;
cout << "Time: " << __TIME__ << endl;
// MSC Specific Predefined Macros
int majorNumber = (_MSC_VER) / 100;
int minorNumber = (_MSC_VER) % 100;
int buildNumber = (_MSC_FULL_VER) % 100000;
printf("MSC Version: %d.%d.%d\n", majorNumber, minorNumber, buildNumber);
// GCC Specific Predefined Macros
printf("GCC Version: %d.%d.%d\n", __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__);
return 0;
}
'Piece' 카테고리의 다른 글
[C#] iterating enum type (0) | 2018.07.09 |
---|---|
[Windows] Set %HOME% Environment Variable (for Vim, Emacs, AStyle, ...) (0) | 2018.07.02 |
Python Script [SQL] sp_configure sp_execute_external_script (0) | 2018.06.30 |
[SQL] Table Field Record (0) | 2018.06.30 |
Class [Python] allocator __new__ & initializer __init__ & finalizer __del__ (0) | 2018.06.30 |