随笔分类 -  嵌入式C

出错的程序操作
摘要:作为程序员的你知道这一刻发生了什么嘛? 阅读全文

posted @ 2018-11-23 12:49 黄志平 阅读(192) 评论(0) 推荐(0)

一般电脑软件整体缩进和缩退快捷键
摘要:一般程序员在写代码中对齐才为美观,而且写出来的代码让人看的更舒服,所以我们会去刻意去一行一行对齐,这是不必要的! 编码的快捷方式,要用键盘操作,少用鼠标或不用 1 : ctrl+< --或--> 就能够跳过一个单词 2:ctrl+shift+(左,右方向键),下载一个单词 3:ctlr+c 复制 4 阅读全文

posted @ 2018-04-14 14:29 黄志平 阅读(5788) 评论(0) 推荐(0)

C指针3
摘要:#include <stdio.h>#include <stdlib.h> typedef struct{ int age; char* name[20]; } student;int main(){ student lisa = {18,"lisa"}; /* * 结构体成员在存储空间中是连续的 阅读全文

posted @ 2018-04-08 11:37 黄志平 阅读(113) 评论(0) 推荐(0)

C指针2
摘要:#include <stdio.h>#include <stdlib.h> char name[10] = "lisa";//内容:'l' 'i' 's' 'a' 0 0 0 0 0 0 int ko[10] ;//函数声明void reset1(char *p);void last_lisa(); 阅读全文

posted @ 2018-04-08 11:36 黄志平 阅读(102) 评论(0) 推荐(0)

C指针1
摘要:#include <stdio.h>#include <stdlib.h>void reset(char x);void rest(char *x);int main111(void){ char a = 'a'; int b = 128; printf("a变量的地址是:%d\n",&a); pr 阅读全文

posted @ 2018-04-08 11:12 黄志平 阅读(108) 评论(0) 推荐(0)

结构体
摘要:#include <stdio.h>#include <stdlib.h>struct dog{ int age; char name[20]; char favorite[20]; };//定义结构体类型的同时,取好别名typedef struct person{ int age; char na 阅读全文

posted @ 2018-03-27 21:29 黄志平 阅读(141) 评论(0) 推荐(0)

导航