摘要: 1、静态全局变量 全局变量的空间会在程序的生命周期内分配,在全局变量的前面加上static,变成静态全局变量。 #include <iostream> #include <string.h> using namespace std; static int n = 5; int main() { n 阅读全文
posted @ 2023-06-10 08:55 韓さん 阅读(325) 评论(0) 推荐(0) 编辑