c++ #define
生活随笔
收集整理的這篇文章主要介紹了
c++ #define
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
c++ #define
#include <iostream> using namespace std;#define LENGTH 10 #define WIDTH 5 #define NEWLINE '\n'int main() {int area;area = LENGTH * WIDTH;cout << area;cout << NEWLINE;return 0; }posted on 2019-03-13 11:18 luoganttcc 閱讀(...) 評論(...) 編輯 收藏
《新程序員》:云原生和全面數(shù)字化實踐50位技術專家共同創(chuàng)作,文字、視頻、音頻交互閱讀總結(jié)
以上是生活随笔為你收集整理的c++ #define的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: c++ 变量声明
- 下一篇: C++ 有符号整数和无符号整数修饰符之