摘要: 转自:http://blog.csdn.net/qc20042/article/details/6838345 static的三种使用方式 (1)局部静态变量 (2)外部静态变量/函数 (3)静态数据成员/成员函数 引用static变量要小心! 因为static的局部性,全局静态变量在声明他的文件之 阅读全文
posted @ 2017-04-12 13:31 roadmap 阅读(502) 评论(0) 推荐(0)
摘要: #include <stdio.h>int arr[10] = {3, 2, 4, 1, 9, 7, 5, 6, 0, 8};void print_array(int arr[], int num){ int i = 0; for (i = 0; i < num; i++) printf("arr[ 阅读全文
posted @ 2017-04-12 13:27 roadmap 阅读(134) 评论(0) 推荐(0)