2069
14
8800万
管理员
C++定义常量两种方式
#define 宏常量: #define 常量名 常量值
const修饰的变量 const 数据类型 常量名 = 常量值
示例:C++
举报
本版积分规则 发表回复 回帖后跳转到最后一页
|Archiver|手机版|小黑屋|i编程 ( 陕ICP备2025058491号-1 )
GMT+8, 2025-6-20 04:53 , Processed in 0.161402 second(s), 23 queries .
Powered by Discuz! X3.5
Copyright © 2001-2020, Tencent Cloud.