![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c
Yifan_REN
这个作者很懒,什么都没留下…
展开
-
C语言编译过程
C语言通过编译器【gcc】生成可执行文件,这其中是直接就生成了可执行文件吗? gcc test.c -o test 其实并不是,C语言的编译存在四个步骤。 test.c-------(1)------->test.i--------(2)------>test.s------(3)------>test.o------(4)------>test (1)是预处...原创 2018-08-08 13:43:27 · 107 阅读 · 0 评论 -
Linux c:时间编程
在计算程序的耗时操作时,程序运行的时间特别的短,所以我们要获取的时间尽可能的准确。 1.使用time()获取当前时间。 头文件: #include <time.h> 函数 : time_t time(time *tm) time()的返回值是从1970.01.01 00:00:00 到函数获取时间的一个毫秒数。 由于获取到的毫秒数不便于我们直观了解当前时间。 所以经常...原创 2018-08-08 20:53:54 · 509 阅读 · 0 评论 -
【Linux c】字符串的截取
对字符串的截取: #include <stdio.h> #include <string.h> //截断有特殊符号的字符串,并取后段 void cutString_A(char* string) { char *p_start = string; char newString[32]; while(*p_start) { if...原创 2018-11-16 19:06:47 · 4111 阅读 · 0 评论 -
printf 格式化输出修饰符详解
原文章地址:https://www.cnblogs.com/prayer521/p/6139424.html C语言printf格式化输出修饰符详解 转换说明 输出 %a,%A 浮点数、十六进制数和p-计数法(C99) %c 一个字符 %d 有符号十进制数 %e,%E 浮点数,e计数法 %f 浮点数,十进制计数法 %g,%G ...转载 2018-12-07 16:53:48 · 1944 阅读 · 0 评论