📜  #define in cpp - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:49.375000             🧑  作者: Mango

代码示例2
// The #define preprocessor directive creates symbolic constants
#include 
using namespace std;

#define CONSTANT 2.71828

int main () {
   cout << "Declared constant: " << CONSTANT << endl; 

   return 0;
}