- 博客(9)
- 收藏
- 关注
原创 C语言指针之多维数组
#include <stdio.h>#include <stdlib.h>/* run this program using the console pauser or add your own getch, system("pause") or input loop */int main(int argc, char *argv[]) { //一.回顾二维数...
2019-07-06 22:49:49 248
原创 C语言指针之数组指针作为参数
#include <stdio.h>#include <stdlib.h>void changevalue(int ba[]){ ba[3] = 27; //这是把内存赋值 所以这个值会被带回到调用者 ba[4] = 45; return; }void changevalue2(int *p){ //一定得知道a的范围是a[0]-a[...
2019-07-06 16:52:35 5747
原创 C语言指针数组
#include <stdio.h>#include <stdlib.h>/* run this program using the console pauser or add your own getch, system("pause") or input loop */int main(int argc, char *argv[]) { //上次讲的指针变...
2019-07-06 15:48:10 132
原创 C语言指针的一个例子
#include <stdio.h>#include <stdlib.h>/* run this program using the console pauser or add your own getch, system("pause") or input loop */void swap(int *a,int *b){//2个指针作为形参 a->a b-&...
2019-07-06 11:11:31 911
翻译 C语言第九章指针
#include <stdio.h>#include <stdlib.h>/* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(int argc, char *argv[]) { // //回顾 ...
2019-07-05 23:20:54 165
原创 C语言第九章 指针开篇
C语言之指针初步#include <stdio.h>#include <stdlib.h>/* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(int argc, char *argv[]) { ...
2019-07-03 21:00:13 119
翻译 C语言第八章编译预处理
编译预处理-条件编译//#include命令:预编译命令,作用就是将某些文件包含到用户的源文件中来,也就相当于把某个文件中的内容原封不动的贴到#include这个位置//标准的I/O库:stdio.h叫头文件 #include <stdio.h>//<>就是去系统目录中找头文件 所以像标准的收stdio.h头文件就用<> #include <std...
2019-07-02 22:31:52 192
原创 C语言第八章之宏定义
宏定义基础#include <stdio.h>#include <stdlib.h>/* run this program using the console pauser or add your own getch, system("pause") or input loop *///不带参的宏定义 //#define 标识符/宏名 字符串 //这个意思...
2019-07-02 09:05:45 473
原创 C语言之跨文件使用函数和变量
跨文件使用函数和变量这是主函数的代码:#include <stdio.h>#include <stdlib.h>/* run this program using the console pauser or add your own getch, system("pause") or input loop */extern int g_a;//对外部全局变量作说...
2019-07-01 10:10:50 4332
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人