自定义博客皮肤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)
  • 收藏
  • 关注

原创 C语言冷门知识——柔性数组

什么是柔性数组? C99 中,结构中的最后一个元素允许是未知大小的数组,这就叫做『柔性数组』成员。 我对此的理解 为 1.是结构体的最后一个元素。 2.具有0个元素。 3.无大小 例: #include<stdio.h> struct student { char clss[32]; char name[32]; int score[]; }; int main() { printf("%d", sizeof(struct student)); return 0; } 我们

2020-12-15 22:36:51 197 1

原创 关于模拟实现memcpy与memmove

memcpy 函数的功能是从源内存地址的起始位置开始拷贝若干个字节到目标内存地址中,即从源source中拷贝n个字节到目标destin中。 memcpy void * memcpy ( void * destination, const void * source, size_t num ); 函数memcpy从source的位置开始向后复制num个字节的数据到destination的内存位置。 这个函数在遇到 ‘\0’ 的时候并不会停下来。 如果source和destination有任何的重叠,复制的结

2020-12-14 21:38:02 111

原创 C语言——数据在内存中的存储

数据类型介绍 char //字符数据类型 short //短整型 int //整形 long //长整型 long long //更长的整形 float //单精度浮点数 double //双精度浮点数 类型的基本归类 整形 char unsigned char signed char short unsigned short [int] signed short [int] int unsigned int signed int long unsigned l

2020-12-01 22:16:44 143 2

原创 C语言初步汇总思维导图

初步学习完C语言后根据自己所学和搜集到的资料,绘制了如下的思维导图: 扫雷 三子棋

2020-11-27 17:39:58 412

原创 扫雷简易版

game.h #pragma once #include <stdio.h> #include <string.h> #include <time.h> #include <windows.h> #define ROW 12 #define COL 12 #define NUMS 20 #pragma warning(disable:4996) void Menu(); void Game(); game.c #include "game.h" vo

2020-11-27 17:02:30 144

原创 三子棋简易版代码

三子棋代码 game.h: #pragma once #include <stdio.h> #include <time.h> #include <windows.h> #define ROW 3 #define COL 3 #define P_COLOR 'X' #define C_COLOR 'O' #pragma warning(disable:4996) void Menu(); void Game(); game.c #include "game.h"

2020-11-27 16:52:29 117

空空如也

空空如也

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

TA关注的人

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