beckyUp
beckyUp
全部文章
c++
--------------作业---------------(4)
ACM算法(15)
codeforces(8)
CSP(2)
fft(1)
java(8)
java图像(1)
KMP(4)
tcp/ip(4)
二分(5)
二分图匹配(1)
分块(1)
分治(2)
前缀和(2)
动态规划(18)
区间dp(3)
博弈(2)
后缀数组(1)
图论(8)
字典树(1)
字符串(8)
小技巧(9)
并查集(2)
感悟(13)
操作系统(2)
数据库(3)
数据结构(22)
数论(10)
未归档(7)
构造(2)
树形dp(1)
水题(22)
状压dp(2)
脑洞(1)
自然语言处理(2)
计算几何(5)
计算方法(4)
读书笔记(2)
归档
标签
去牛客网
登录
/
注册
距离今天结束还有1分钟
ACM 蒟蒻
全部文章
/ c++
(共16篇)
c++ 一个数组数据存放于读取的模板类
#include <bits/stdc++.h> using namespace std; const int maxn=100+50; struct student{ int id; float gpa; }; template <class T,int n>...
2018-05-09
0
456
c++ array模板类模拟数组
#ifndef ARRAY_H #define ARRAY_H #include <bits/stdc++.h> using namespace std; template <class T> class Array{ private: T* list; in...
2018-05-09
0
373
第十三次 ccf URL映射 [字符串匹配 90分]
// stringtraining.cpp: 定义控制台应用程序的入口点。 // #include <bits/stdc++.h> using namespace std; vector<string>now; int n, m; bool match(string a, s...
2018-05-05
0
458
c++ 多态和继承,虚类的作用
#include <bits/stdc++.h> using namespace std; const int maxn=1e5+50; const int mod=1e9+7; class Employee { private: string firstname,lastnam...
多态
继承
2018-04-25
0
467
运算符重载,分数的加减乘除
#include <bits/stdc++.h> using namespace std; class frac { private: int deno,nume; public: frac(int x=1,int y=1):deno(x),nume(y) {} ...
2018-04-25
0
424
c++ 写一个银行管理系统
完成功能:1、能够实现多种存储方式:包括活期存储,定期存储一年、两年、三年并且实现结算业务。 2、 能够模仿学生读书账号的借贷手续、借贷业务和结算业务 3、 能够查询某账号下的总资产和明细记录。 4、 能够查询银行的总存款额和总借贷额 类的设计: Accumulator类用于存放按照时间累...
2018-04-23
0
618
4.11 c++上机【继承与派生3】
写一个baseclass 和它派生出的drivedclass ,通过指针调用二者相同的函数 #include<bits/stdc++.h> using namespace std; class BaseClass { public: void fn1() { ...
2018-04-11
0
437
4.11 c++上机【继承与派生2】
定义一个document类 派生出book类 #include <bits/stdc++.h> using namespace std; class ducumemt { private: string name,text; public: void setname(s...
2018-04-11
1
455
4.11 c++ 【继承与派生】
定义一个基类shape,在shape 的基础上派生出 rectangle 和circle …… #include <bits/stdc++.h> using namespace std; const double pi=3.14159; class Shape{ public: ...
2018-04-10
0
379
数据结构之哈夫曼树
// stringtraining.cpp: 定义控制台应用程序的入口点。 // #include "stdafx.h" #include <bits/stdc++.h> using namespace std; const int maxn = 1e5 + 50;...
2018-04-10
0
378
首页
上一页
1
2
下一页
末页