为什么有时可以在头文件可以定义变量,有时不行(变量重定义)。
头文件中只能定义常量。如:const int x;
posted on 2022-08-30 09:17  闻缺陷则喜何志丹  阅读(3)  评论(0编辑  收藏  举报  来源