1 Star 0 Fork 0

水兵/Project1

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
diag.h 2.59 KB
一键复制 编辑 原始数据 按行查看 历史
水兵 提交于 2020-04-01 11:04 +08:00 . 1.输入非法的提示
#pragma once
#include<stdio.h>
#include<stdlib.h>
#include<string>
#include<iostream>
#include<vector>
#include<cstdlib>
#include<fstream>
#include <utility>
#include<algorithm>
#include<Windows.h>
#include<conio.h>
#define DEBUG
#define testUi
//#define DEBUG
#define For(i, l, r) for(int i = l; i <= r; i++)
using namespace std;
struct CourseNode{
CourseNode(){
CourseId = -1;
CourseName = "";
CourseTeacher = "";
CourseCap = -1;
CourseSel = -1;
CourseType = -1;
}
CourseNode(int id){
CourseId = id;
CourseName = "";
CourseTeacher = "";
CourseCap = -1;
CourseSel = -1;
CourseType = -1;
}
CourseNode(string name){
CourseName = name;
CourseId = -1;
CourseTeacher = "";
CourseCap = -1;
CourseSel = -1;
CourseType = -1;
}
// id name teacher cap sel type
CourseNode(string name, string teacher, int cap, int sel, string type, int id = -1){
CourseId = id;
CourseName = name;
CourseTeacher = teacher;
CourseCap = cap;
CourseSel = sel;
if (type == "רҵ") CourseType = 0;
else CourseType = 1;
}
int CourseId, CourseCap, CourseSel, CourseType;//0רҵ 1רҵ
string CourseName, CourseTeacher;
};
//extern vector<CourseNode>CourseList;
struct stuWordNode{
stuWordNode(string name, string password=""){
stuName = name;
stuPassword = password;
}
string stuName, stuPassword;
};
struct stuCourseNode{
stuCourseNode(int id, string st = "Null"){
courseId = id;
assistant = st;
}
int courseId;
string assistant;
};
struct assistNode{
assistNode(){
courseId = -1;
if (!list.empty()) list.clear();
}
assistNode(int id, string st){
courseId = id;
if (!list.empty()) list.clear();
list.push_back(st);
}
assistNode(int id, vector<string> a){
courseId = id;
if (!list.empty()) list.clear();
list.assign(a.begin(), a.end());
}
assistNode(string st){
courseId = -1;
if (!list.empty()) list.clear();
list.push_back(st);
}
assistNode(int id){
courseId = id;
if (!list.empty()) list.clear();
}
assistNode(const assistNode& tmp){
courseId = tmp.courseId;
list.assign(tmp.list.begin(), tmp.list.end());
}
int courseId;
vector<string> list;
};
struct courseStuNode{
courseStuNode(){
courseId = -1;
list.clear();
}
courseStuNode(int id){
list.clear();
courseId = id;
}
courseStuNode(int id, string st){
courseId = id;
list.clear();
list.push_back(st);
}
courseStuNode(int id, vector<string> a){
courseId = id;
list.clear();
list.assign(a.begin(), a.end());
}
courseStuNode(const courseStuNode& tmp){
courseId = tmp.courseId;
list.assign(tmp.list.begin(), tmp.list.end());
}
int courseId;
vector<string> list;
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/Shbinging/Project1.git
git@gitee.com:Shbinging/Project1.git
Shbinging
Project1
Project1
master

搜索帮助