摘要: // CPPTest.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include<fstream> #include <iostream> #include<string> #include<cstring> #include<cmath> using name 阅读全文
posted @ 2024-07-26 15:15 zhongta 阅读(33) 评论(0) 推荐(0)
摘要: int global =100;//外部链接,所有文件皆可访问。 static int one_file=50;//内部链接,static关键字,单文件可以使用 void function2(){ static int count=0;//无连接,函数内部使用。静态变量。 } //上述三种变量作用时 阅读全文
posted @ 2024-07-26 14:46 zhongta 阅读(21) 评论(0) 推荐(0)