可以,不过const没define灵活int const abc = 123#define ABC 123const使用要声明清楚是什么类型而define是在编译时直接将代码中的ABC直接替换成123,相当于你在代码中写的123define可以定义表达式,如#define ADD(x) (x+1)还有#ifdefine等预编译,总之功能很强大