![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c初步学习
BirdFSS
谦逊平和,生活有常
展开
-
++运算符注意事项和字符处理函数
#include<stdio.h> #include<stdlib.h> void main() { char a[10] = "hello my"; char b[10] = { 0 }; char *t = mystrcpy(b, a); printf("%s\n", b); printf("%s\n", t); char *a1 = a; char ...原创 2019-05-01 20:00:30 · 120 阅读 · 0 评论 -
include后缀的区别
在C程序中包含文件有以下两种方法: (1)用符号“<”和“>”将要包含的文件的文件名括起来。这种方法指示预处理程序到预定义的缺省路径下寻找文件。预定义的缺省路径通常是在INCLUDE环境变量中指定的,请看下例: INCLUDE=C:\COMPILER\INCLUDE;S:\SOURCE\HEADERS; 对于上述INCLUDE环境变量,如果用#include...转载 2018-07-20 09:53:36 · 244 阅读 · 0 评论 -
全局变量与静态变量
1.全局变量 作用域为定义处到文件末尾,但是在程序开始就占用内存了。 #include<stdio.h> #include<stdlib.h> //这样是可以的 extern int g; int k = 10; int main() { int i = 100; printf("%d", g); return 0; } int g = 10; #inc...原创 2019-05-03 19:50:46 · 1413 阅读 · 0 评论