class
class
Algorithm yyds
曾经注重C++,现在专注于Kali Linux渗透
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
学校class
#include<bits/stdc++.h> using namespace std; class school { private: string name; struct student { string s_name; int number; }; student stu[2005]; int sum; public: school():name(""),sum(0) { f.原创 2021-12-15 17:26:19 · 566 阅读 · 0 评论 -
股票小class类
#include <bits/stdc++.h> using namespace std; class Stock { private: string name; string ID; double price; public: Stock():name(""),ID("000000"),price(0.0){} Stock(string n):name(n),ID("000000"),price(0.0){} Stock(double p):n.原创 2021-12-14 17:37:19 · 435 阅读 · 0 评论 -
一个小小的class
#include <bits/stdc++.h> using namespace std; class point { private: int score; string name; public: point():score(0),name(""){} point(int s):score(s),name(""){} point(string n):score(0),name(n){} point(int s,string n):score(.原创 2021-12-01 17:17:00 · 610 阅读 · 0 评论 -
一个class的student项目
话不多说,直接给代码 #include <iostream> #include <string> using namespace std; class student { private: string name; unsigned score; bool male; public: student():name(""),score(0),male(true){} student(string n,unsigned s,bool m):na原创 2021-11-27 13:05:22 · 286 阅读 · 0 评论 -
class的一个小项目(未完成,只把class写了)
望一键三连! #include <iostream> #include <string> using namespace std; class building { private: int floor; unsigned short history; string name; double area; public: building() { floor=0; history=0; .原创 2021-11-24 20:23:02 · 306 阅读 · 0 评论
分享