![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C语言基础
Predator .
Life is too short for us to wake up in the morning with regrets.
展开
-
学生管理系统链表简单实现
Student Management System 闲来无事,简单写个项目。主要功能:添加;删除;查找;显示。当然要继续添加,比如根据学号排序,插入等都是可以实现的。主函数功能简单,当然主函数功能简单免不了函数内部实现需要添加提示语句等,考虑输入输出等,就会使得函...原创 2020-01-05 13:06:49 · 535 阅读 · 0 评论 -
C -- C预处理器和C库
C预处理器和C库 一、预处理器指令 #include //引用系统库,在系统目录中查找相应库 #include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> //引用自定义库,在当前目录下查找相应头文件 #include "MY_HEAD.h" #de...原创 2019-12-10 18:55:57 · 238 阅读 · 0 评论 -
C -- 位操作基础
位操作运算符 ###基本运算符* 运算符 ~ & | ^ << >> 含义 按位反 按位与 按位或 按位异或 左移 右移 1、按位反: ~ 一元运算符,逐位取反,产生二进制反码; 例: 表达式 ~(10010001) 结果值 01101110; 2、按位与: & 二元运算符,逐位比较,都真才真(1 & 1 = 1); 例:...原创 2019-12-01 18:46:30 · 197 阅读 · 0 评论 -
C -- 位字段
位字段(bit field) 1.使用结构构建可访问对应位的位字段: 优点:提供可以更紧凑的存储数据的方式,使用特定位 缺点:移植性差 基本单元:unsigned int //如何创建位字段 struct bits_field { unsigned int color : 3; //有效使用3bits,范围0-7 unsigned int opaque : 1; //有效使用1bit,范...原创 2019-12-06 11:59:33 · 287 阅读 · 0 评论