?? list2101.cpp
字號:
#define DemoVersion
#define SW_VERSION 5
#include <iostream>
using std::endl;
using std::cout;
int main()
{
cout << "Checking on the definitions of DemoVersion,";
cout << "SW_VERSION, and WINDOWS_VERSION..." << endl;
#ifdef DemoVersion
cout << "DemoVersion defined." << endl;
#else
cout << "DemoVersion not defined." << endl;
#endif
#ifndef SW_VERSION
cout << "SW_VERSION not defined!" << endl;
#else
cout << "SW_VERSION defined as: "
<< SW_VERSION << endl;
#endif
#ifdef WINDOWS_VERSION
cout << "WINDOWS_VERSION defined!" << endl;
#else
cout << "WINDOWS_VERSION was not defined." << endl;
#endif
cout << "Done." << endl;
return 0;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -