摘要: //头文件 #ifndef STUDENT_H #define STUDENT_H //武器类 class Weapon { public: Weapon(); ~Weapon(); Weapon(const char* name); //带参构造 Weapon(const Weapon& othe 阅读全文
posted @ 2020-04-10 09:07 神迹丶 阅读(181) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include <easyx.h> using namespace std; void draw() { initgraph(500, 500); BeginBatchDraw(); int num = 1; //定义模式 int x = 30; //初始化x 阅读全文
posted @ 2020-04-08 21:53 神迹丶 阅读(531) 评论(0) 推荐(0) 编辑
摘要: // ConsoleApplication4.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include<iostream> using namespace std; void kuaipai(int arr[], int left, int right 阅读全文
posted @ 2020-04-06 16:17 神迹丶 阅读(758) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> using namespace std; int main() { //插入排序理解 int arr[] = { 56, 12, 3, 7, 11,55,456,123,55,44,6,7,8,999,1 }; //定义一个int类型数组 int m = 0; 阅读全文
posted @ 2020-04-06 12:44 神迹丶 阅读(776) 评论(0) 推荐(0) 编辑
摘要: //头文件 #ifndef STUDENT_H #define STUDENT_H #include <string> #include <iostream> using namespace std; class Student { private: int id; //ID char* name; 阅读全文
posted @ 2020-04-06 01:38 神迹丶 阅读(4624) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; int main() { int **p=new int*[10]; //定义一个指针数组 int num = 1; for (int i = 0; i < 10; i++) { p[i] = new int[10]; 阅读全文
posted @ 2020-04-02 02:41 神迹丶 阅读(286) 评论(0) 推荐(0) 编辑
摘要: //头文件 #ifndef STUDENT_H #define STUDENT_H class Student { public: int xingwei; Student(); //构造成员 ~Student(); //析构成员 Student* init_Student(); //初始化学生类 阅读全文
posted @ 2020-04-01 00:45 神迹丶 阅读(279) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> using namespace std; int main() { int arr[10][10]; //存放10个int指针数组,每个数组中存放10个int元素,则用二维数组来表示 int(*p)[10] = arr; //定义一个指针数组指向该内存地址, i 阅读全文
posted @ 2020-03-31 23:52 神迹丶 阅读(562) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS #include <string> #include <windows.h> #include <stdint.h> #include <tlhelp32.h> #include <iostream> #include <vector> 阅读全文
posted @ 2020-03-27 21:17 神迹丶 阅读(2212) 评论(5) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> struct Node { int id; Node* next; }; //初始化头节点 Node* init_m_head() { Node* temp 阅读全文
posted @ 2020-03-27 03:57 神迹丶 阅读(1551) 评论(0) 推荐(0) 编辑
网站已运行: