忆月の日常

国家一级保护废物

0%

第一章 绪论

*第一台计算机诞生于1946年

创建结构体
1
2
3
4
5
6
struct Student
{
int No;
char name[20];
float Eng;
}stu[20];
结构体的使用
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include<string.h>

int main()
{
struct Student stu1;

strcpy(stu1.name,"John");
stu1.No = 10000;
stu1.Eng = 87;

printBook(stu1);

return 0;
}

第二章

顺序表的构建
创建结构体
1
2
3
4
5
6
7
8
#include<stdio.h>
#include<stdlib.h>

typedef struct Vector{
int size; // 线性表容量
int length; // 当前元素个数
int *data; // 头指针
}Vector;
顺序表的初始化
1
2
3
4
5
6
void init(Vector *vector, int size)
{
Vector->size = size;
Vector->length = 0;
Vector->data = (int*)malloc(sizeof(int) * size);
}
清理内存函数
1
2
3
4
5
void clean(Vector *vector)
{
free(vector->data);
free(vector);
}
插入函数
1
2
3
4
void insert(Vector *vector, int loc, int value)
{

}

Hello World

这是一级标题

这是二级标题

这是三级标题

这是四级标题

这是五级标题
这是六级标题

第一段落

第二段落

斜体文本

粗体文本

粗体文本

粗体文本

粗斜体文本

粗斜体文本

删除线

下划线

无序列表

  • 第一项
  • 第二项
  • 第三项

有序列表

  1. 这是第一项
  2. 这是第二项

列表嵌套

  1. 第一项
    • 第一元素
    • 第二元素
    • 第三元素
  2. 第二项
    • 第四元素
    • 第五元素
  3. 第三项
    • 第六元素

最最外层

最外层

第一层嵌套

第二层嵌套

  • 第一项

    菜鸟教程

    1

markdown代码

printf函数

区块代码使用tab

1
2
3
4
System.out.println("print函数");
int a;
a = 10;
System.out.print(a);
1
2
3
[链接名称](链接地址)
或者
<链接地址>

百度

1
[百度](www.baidu.com)

https://www.baidu.com

1
<www.baidu.com>
高级链接
1
2
3
[Google][1]

[1]:https://www.baidu.com

Google

目前遇到的问题

1.Oh no! Something has gone wrong.

问题说明

​ 使用某电脑(R9+RTX2060)虚拟机安装CentOS时候遇到此问题,重新安装4-5次仍未解决此问题。尝试用其他电脑(8th-i5+MX150)安装相同系统,系统这后者上可以正常启动,但是移植到前者后依旧出现未知错误。

​ 出现此问题推测是因为AMD处理器的电脑搭配NVIDIA的显卡,而虚拟机中可能未包含独立显卡的驱动,导致加载图形页面时出现未知错误。

*没有足够数量的电脑来验证此结论,有兴趣的朋友可以加入q群426853951讨论

解决方法

总的来说就是更改虚拟机设置,让虚拟机带上英伟达的驱动。

1.进入虚拟机的设备管理页面

2.在硬件-显示器中开启3D图形加速,并分配适量图形内存并保存,之后重启虚拟机即可

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment