自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 pointer

主旨:每个变量都有一个内存地址,而这个地址呢都可以通过指针来进行存储(就类似于把每家每户的地址存储的专门机构)工作人员可以用&来查询(就跟查地图一样)在需要存储某一户人家的地址的时候呢,我们需要先通知这个机构—也就是我们的pointer(先申明一个pointer),然后呢就可以用&来进行之后的查询啦。在一开始申请指针的时候可以为指针变量赋一个 NULL 值是一个良好的编程习惯。这里其实应该用char型的指针。指针跟变量的类型是一样的。这时候我们就可以使用指针*p来代表之前的实际变量的值。

2022-10-29 00:14:22 64 1

原创 string

NUL: 是一个数值为0的控制字符,是\0的转义字符。在c语言内部,是这么储存的。

2022-10-28 23:45:31 319 1

原创 c语言转换为binary

c语言小程序转换为binary#include<stdio.h>int main(){ unsigned int x = 0xAF12 //hexadecimal unsigned int y = 0b0101010;//unsigned binary //printf the unsigned intger printf("%u" ,x); printf("%u", y); unsigned int z = 938271; printf("0x%x\n", z);

2020-09-06 15:41:38 684

原创 fscanf & fprintf

fscanf & fprintf#include<stdio.h>#include<stdlib.h>void waiter(FILE *input, FILE *output);int main(){ waiter(stdin, stdout); return EXIT_SUCCESS;}void waiter(FILE *input, FILE *output){ char contents = 0; int i; w

2020-09-05 15:59:17 94

原创 wait(NULL)

每天几个编程小笔记wait()小栗子????1.无 wait()#include<stdio.h>#include<stdlib.h>#include<sys/wait.h>#include<sys/types.h>#include<unistd.h>int main(){ pid_t pid; pid = fork(); if(pid == 0){ printf("I am child. My pid is %d\n"

2020-07-23 19:16:56 7273 3

原创 exit() VS _exit()

每天几个编程小笔记exit() VS _exit()小栗子????:1.exit()#include<stdio.h>#include<stdlib.h>int main(){ printf("Hello\n"); printf("Hi\n"); exit(0);}=>Hello Hi2._exit()#include<stdio.h>#include<stdlib.h>#include<unistd.h>

2020-07-23 16:35:01 157

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除