上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 22 下一页
摘要: #include "stdafx.h" #include <stdlib.h> #include <time.h> // 生成随机数 - 100到200 int main(int argc, char *argv[], char **envp) { srand((unsigned)time(NULL)); int nLoop = 0; while (nLoop < 20) { int i = 10 阅读全文
posted @ 2019-09-19 22:45 火焰马 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 一 两个参数 二 三个参数 说明: 第三个参数用来在程序运行时获取系统的环境变量,操作系统运行程序时通过envp 参数将系统环境变量传递给程序 阅读全文
posted @ 2019-09-19 22:31 火焰马 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 一 枚举 二 位段/位域 三 联合体 阅读全文
posted @ 2019-09-14 18:19 火焰马 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 一 常量指针 : const int *p 二 指针常量 : int * const p 三 指针常量 : int * const p 四 指向常量的指针常量 : const int * const p 阅读全文
posted @ 2019-09-14 16:08 火焰马 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 一 const赋值 二 const改值 三 应用 阅读全文
posted @ 2019-09-14 14:13 火焰马 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 一 #define和typdef 二 宏函数 阅读全文
posted @ 2019-09-14 11:24 火焰马 阅读(187) 评论(0) 推荐(0) 编辑
摘要: /* 目录: 一 冒泡排序 二 选择排序 */ 一 冒泡排序 void BubbleSort(int *p, int nCount) { int nOutLoop, nInLoop; nOutLoop = 0; // 外层循环 : 计数变量 while (nOutLoop < nCount - 1) 阅读全文
posted @ 2019-09-12 19:17 火焰马 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 一 #pragma once 二 typedef 三 #ifdef 阅读全文
posted @ 2019-09-11 20:02 火焰马 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 一: NULL本质 二: nullptr本质 阅读全文
posted @ 2019-09-11 19:37 火焰马 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 一: 编译器过程 二: 头文件作用 三: 头文件组织原则 四: 头文件包含原则 五: 测试代码 文件结构 阅读全文
posted @ 2019-09-08 22:43 火焰马 阅读(223) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 22 下一页