过去有些程序,会把数据写入可执行文件自身内部 现在似乎有点玄,可能需要一点手段
读写文件 读写注册表 读写数据库 读写云存储 读写FLASH ROM ……
[quote=引用 9 楼 qq_29007291 的回复:] [quote=引用 8 楼 lgbxyz 的回复:] static 和 全局 变量
[quote=引用 8 楼 lgbxyz 的回复:] static 和 全局 变量
static 和 全局 变量
[quote=引用 2 楼 qq_29007291的回复:][quote=引用 1 楼 u014444402 的回复:] 文件被你忽略了?
在主程序main函数中肯定不可以的,mian函数结束整个程序的资源都被回收了 在其它函数中可以,下面test运行一次 a就加1 #include<stdio.h> void test() { static int a=0; a++; printf("%d",a); } int main() { test(); return 0; }
#include<stdio.h> void test() { static int a=0; a++; printf("%d",a); } int main() { test(); return 0; }
[quote=引用 1 楼 u014444402 的回复:] 文件被你忽略了?
文件被你忽略了?
69,336
社区成员
243,078
社区内容
加载中
试试用AI创作助手写篇文章吧