![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c语言小知识
flexman09
这个作者很懒,什么都没留下…
展开
-
struct结构体中的点
http://blog.csdn.net/comwise/article/details/9087279可以不按照顺序来初始化struct中的变量原创 2016-06-21 10:28:17 · 2029 阅读 · 0 评论 -
C语言getopt()函数的使用
转自http://vopit.blog.51cto.com/2400931/440453getopt(分析命令行参数) 相关函数表头文件 #include定义函数 int getopt(int argc,char * const argv[ ],const char * optstring);函数说明转载 2016-05-30 10:10:27 · 247 阅读 · 0 评论 -
c函数的选用
1;字符串复制使用 strncpy(str, src, sizeof(str)); 其中sizeof后面是目的字符串的长度。原创 2016-07-29 11:37:56 · 292 阅读 · 0 评论 -
c语言读取文件的行
转自#include int main() { char filename[] = "D:\\阶段性学习\\大三上\\1.课程学习\\编译原理\\0903\\实验二\\test.c"; //文件名 FILE *fp; char StrLine[1024]; //每行最大读取的字符数 if((fp = fopen(转载 2016-08-01 17:55:55 · 692 阅读 · 0 评论