docman-software-design-pku-2024spring
2024春-北京大学-软件设计实践-中作业-马郓&谢涛
https://github.com/zyy3077/docman-software-design-pku-2024spring
Science Score: 31.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (0.7%) to scientific vocabulary
Last synced: 10 months ago
·
JSON representation
·
Repository
2024春-北京大学-软件设计实践-中作业-马郓&谢涛
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Created about 2 years ago
· Last pushed about 2 years ago
Metadata Files
Readme
Citation
README.md
中作业模板
请点击右上角“Use this template”以使用此模板~
Owner
- Name: Yuanyuan Zhao
- Login: zyy3077
- Kind: user
- Repositories: 1
- Profile: https://github.com/zyy3077
Citation (citation.h)
#pragma once
#ifndef CITATION_H
#define CITATION_H
#include <string>
class Citation {
public:
enum Type {BOOK, WEBPAGE, ARTICLE};
Type type;
std::string id;
std::string title;
Citation(std::string id) : id{id} {}
Citation(std::string id, std::string title, Type type) : id{id}, title{title}, type{type} {}
};
class Book : public Citation {
public:
std::string author;
std::string isbn;
std::string publisher;
std::string year;
Book(std::string id, std::string title, std::string author, std::string publisher, std::string year) : Citation(id, title, BOOK), author{author}, publisher{publisher}, year{year} {}
};
class Webpage : public Citation {
public:
std::string url;
Webpage(std::string id, std::string url, std::string title) : Citation(id, title, WEBPAGE), url{url} {}
};
class Article : public Citation {
public:
std::string author;
std::string journal;
int year;
int volume;
int issue;
Article(std::string id, std::string title, std::string author, std::string journal, int year, int volume, int issue) :
Citation(id, title, ARTICLE), author{author}, journal{journal}, year{year}, volume{volume}, issue{issue} {}
};
#endif
GitHub Events
Total
Last Year
Dependencies
.github/workflows/judge.yml
actions
- pku-software/docman-homework-judge-action v1 composite