随笔分类 -  C

C语言经验与学习总结!
摘要:Makefile中赋值 ?= 若变量未定义,则定义 += 在变量后面追加 := 和 = 均为赋值符号,其区别可通过下面的例子看出: $vim makefile a=1 b=2 c=$(a)+$(b) c: @echo $(c) a=56 $make -f makefile c 56+2 再看另一个例 阅读全文
posted @ 2020-10-20 10:10 火热的茶独独 阅读(142) 评论(0) 推荐(0)
摘要:ms级延时 示例1 include <stdio.h> #include <sys/select.h> static void sleep_ms(unsigned int secs) { struct timeval tval; tval.tv_sec=secs/1000; tval.tv_usec 阅读全文
posted @ 2020-06-30 21:02 火热的茶独独 阅读(740) 评论(0) 推荐(0)
摘要:目录 1、简介 2、存储单元及其地址 3、变量的实质 4、指针和变量 5、指针和数组 6、指针和字符串 7、指针和函数 8、指针和指针 9、习题 1、简介 指针是C语言程序设计的灵魂,是C语言程序设计中被广泛使用的一种数据类型,它在C语言使用中有着重要的地位。使用指针能写出精炼而高效的程序代码,极大 阅读全文
posted @ 2019-11-13 11:48 火热的茶独独 阅读(464) 评论(0) 推荐(0)
摘要:1、visual studio 2015 用printf函数打印时来不及看结果窗口就关闭 方案一 在所写的代码后面,加上system("PAUSE"); 如下: 阅读全文
posted @ 2019-11-11 21:38 火热的茶独独 阅读(265) 评论(0) 推荐(0)
摘要:以下程序的输出是()。 struct st { int x; int *y; } *p; int dt[4] = { 10,20,30,40 }; struct st aa[4] = { 50,&dt[0],60,&dt[0],60,&dt[0],60,&dt[0] }; void main() { 阅读全文
posted @ 2019-11-05 21:21 火热的茶独独 阅读(341) 评论(0) 推荐(0)
摘要:python: 必须由英文字母、_(下划线)或中文字开头,建议使用英文字母。 变量名称只能由英文字母、数字、_(下划线)或中文字所组成。 英文字母的大小写是敏感的,例如,Name与name被视为不同变量名称。 Python系统保留字(或称关键词)或Python内置函数名称不可当作变量名称。 java 阅读全文
posted @ 2019-11-05 10:31 火热的茶独独 阅读(820) 评论(0) 推荐(0)
摘要:字符 中文 英文 说明 阅读全文
posted @ 2018-11-08 23:16 火热的茶独独 阅读(640) 评论(0) 推荐(0)
摘要:BIOS(Basic Input Output System): 基本输入输出系统 reference: https://baike.baidu.com/item/bios/91424?fr=aladdin stdio(standard input output): 标准输入输出 阅读全文
posted @ 2018-11-08 22:50 火热的茶独独 阅读(1335) 评论(0) 推荐(0)