自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

JianZha

一个小白的算题

  • 博客(14)
  • 收藏
  • 关注

原创 idea 方法注释模板

【代码】idea 方法注释模板。

2023-03-29 15:10:50 48

原创 高精度运算2^n

#include <iostream>using namespace std;const int N = 3010;int main(){ int a[N] = {1}; int n; cin >> n; int m = 1; for (int i = 0; i < n; i ++ ) { int t = 0; for (int j = 0; j < m; j ++ )

2021-05-12 15:14:59 97

原创 打印菱形

#include <iostream>using namespace std;int main(){ int n; cin >> n; int cx = n / 2, cy = n / 2; for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) if (abs(i - cx) + abs(j - cy) <= n

2021-05-10 14:44:49 72

原创 栈(严蔚敏)

栈数组实现fatal.hmain.h数组实现fatal.h#ifndef fatal#include<stdio.h>#include<stdlib.h>#define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define INFEASIBLE -1#define OVERFLOW -2#define MAXSIZE 100typedef int Status;typedef int Ele

2021-05-02 07:21:15 173

原创

栈fatal.hStack_h.h链表实现数组实现fatal.h#include <stdio.h>#include <stdlib.h>#define Error( Str ) FatalError( Str )#define FatalError( Str ) fprintf( stderr, "%s\n", Str ), exit( 1 )Stack_h.h#ifndef _Stack_hstruct Node;typedef struc

2021-04-22 10:26:49 75

原创 单循环链表

#include<stdio.h>#include<stdlib.h>typedef int TypeElem;// 单循环链表typedef struct NODE{ TypeElem data; struct NODE *next;}* LinkList, Node;// 初始化LinkList createList(){ LinkList L; L = (LinkList) malloc(sizeof(Node));

2021-04-18 21:58:26 101

原创 C语言数据结构——顺序表多项式

#include "fatal.h"#define MaxDegree 100 // 幂的最大次数是100typedef struct{ int CoeffArray[MaxDegree + 1]; // 系数数组,这里定义了数组是很大的,所以下面要单独用一个HighPower来存最高次幂 int HighPower; //高次幂}* Polynomial;// 将多项式初始化为零的过程void ZeroPolynomial(Polynomial Poly){

2021-04-11 23:21:31 832

原创 C语言——随机数

#include<stdio.h>#include<stdlib.h>int main(){ int roll; roll = rand() % 61 + 30; // 产生[30,90]内的随机数 return 0;}

2021-04-11 20:07:12 123

原创 C语言——typedef

1#include<stdio.h>typedef struct Student{ int sid; char name[100]; char sex;}* PST; // PST 等价于 struct Student * 定义的变量为指针int main(){ struct Student st; PST ps = &st; ps->sid = 99; printf("%d\n", ps->sid);

2021-04-09 20:43:57 69

原创 C语言数据结构——数组

#include<stdio.h>#include<stdlib.h>#include<malloc.h>struct Array{ int * pBase; // 存储的是数组第一个元素的地址 int len; // 数组所能容纳的最大元素的个数 int cnt; // 当前数组有效元素的个数};typedef struct Array Arr;void init_arr(Arr *pArr, int length

2021-04-09 20:41:52 202

原创 malloc函数使用

#include<stdio.h>#include<stdlib.h>struct Student{ int sid; int age;};struct Student * CreateStudent(){ struct Student * p = (struct Student *) malloc(sizeof(struct Student)); return p;}void ShowStudent(struct Student

2021-04-09 20:40:52 156

原创 C语言数据结构——链表

#include<stdio.h>#include<malloc.h>#include<stdlib.h>typedef struct Node{ int data; // 数据域 struct Node * pNext; // 指针域}* PNODE, NODE; //NODE等价于struct Node ; PNODE等价于struct Node *PNODE create_list();void traverse_l

2021-04-09 20:34:11 516

原创 Git简单实用

Git简介1、版本控制集中化的版本控制系统 : SVNsvn存放版本之间的差异,需要硬盘空间相对小一些,但是回滚的速度会很慢;版本库都集中放在中央服务器中,而工作时需要从中央服务器得到最新的版本,然后工作,工作完成后需要把写完的代码推送到中央服务器中。集中式版本控制系统必须联网才能工作,对网络带宽要求较高。分布式的版本控制系统: Git 【更常用】Git本地化存储各个版本,需要硬...

2020-04-22 18:23:52 182

原创 CentOS7.4安装教程

1、准备工作下载CentOS7.4的系统下载Vmware下载连接虚拟机的工具2、安装虚拟机将网络连接模式改成 桥接模式1、选择红框圈起来的2、选择安装时候的语言3、选择安装的环境4、选择安装位置5、选择我要配置分区6、更改模式创建分区7、添加 /boot分区,大小为300M【最好512M】8、添加 swap分区,配置为 虚拟机内存的2倍9、添加主分区...

2020-04-22 01:19:39 1204

空空如也

空空如也

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

TA关注的人

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