随笔分类 -  c/c++数据结构

摘要:实验环境 linux mint 下 Qt 5.11 说白了,模板就是搭个函数,类的框架,具体实现的时候往里面填充内容,或者我们可以把类型名想作一个占位符号 函数模板 俗气的比大小 #include <iostream> #include<string.h> using namespace std; 阅读全文
posted @ 2020-02-01 00:56 saintdingtheGreat 阅读(168) 评论(0) 推荐(0)
摘要:基本用法 #include<iostream> #include<time.h> #include<vector> #include<list> using namespace std; void main() { int a[] = {33,44,55,66,77,88}; int i; list 阅读全文
posted @ 2019-12-27 14:58 saintdingtheGreat 阅读(695) 评论(0) 推荐(0)
摘要:上机环境centos7下 Qt5.11 gcc 一些简单的函数封装 #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> struct coach { char name[60]; int age; }; str 阅读全文
posted @ 2019-12-25 20:26 saintdingtheGreat 阅读(227) 评论(0) 推荐(0)
摘要:实验环境win7操作系统下vs2017 定义结构体用于存放教练信息 struct mycoach { char name[60]; int age; char skills[60]; }; 定义线性表存放教练信息 struct seqlist { struct mycoach* mch[10];// 阅读全文
posted @ 2019-12-24 17:03 saintdingtheGreat 阅读(434) 评论(0) 推荐(0)