-
#《Essential C++》读书笔记# 第五章 面向对象编程风格
#《Essential C++》读书笔记# 第五章 面向对象编程风格 基础知识 继承机制定义了父子(parent/child)关系。父类(parent)定义了所有子类(children)共通的共有接口(public interface)和私有实现(private implementation)。每个子类都可以增加或覆盖(override)...
-
cow bowling
cow bowling 因为没好好看题,runtime error QAQ 原来开小了 还要要多吃输入 不准备详细讲解(因为前面说过基础DP的做题步骤),只标注一下状态转移方程,给大伙品鉴 #include iostream #include cstdio using namespace std; int main() { int dp[400][400]; int n; i...
-
lost cows
lost cows 这道题用树状数组做比较好,虽然树状数组能做的线段树也可以做到,但是树状数组更简洁方便,易操作 原理便是第x个数的二进制数最后一个1,决定tree的结点的长度 比如: sum[3]=tree[3]+tree[2]; sum[4]=tree[4]; sum[5]=tree[5]+tree[4]; 分割是位运算里的操...
-
游戏终端服务器分享(1.2版)
游戏终端服务器分享(1.2版) (使用前请将其命名为GC_servy.cpp,否则可能会出错) #includestdlib.h#includestdio.h#includetime.h //suiji#includestring.h#includewindows.h //SLEEP函数#includeiostream#includealgorithm#includeconio.h#includepthread.h#includef...
-
C++模板详解(一):函数模板的概念和特性
C++模板详解(一):函数模板的概念和特性 函数模板是指这样的一类函数: 可以用多种不同数据类型的参数进行调用,代表了一个函数家族 。它的外表和普通的函数很相似,唯一的区别就是:函数中的有些元素是未确定的,这些元素将在使用的时候才被实例化。先来看一个简单的...
-
基于SSH开发银行个人业务管理系统 附源码
基于SSH开发银行个人业务管理系统 附源码 开发环境: Windows操作系统 开发工具: My Eclipse+Jdk+Tomcat+MySql数据库 运行效果图 源码及原文链接:https://javadao.xyz/forum.php?mod=viewthreadtid=35...
-
stl_list复习
stl_list复习 #include iostream #include list #include algorithm using namespace std; //底层结构是双向链表 struct Node{ int a; char c; }; struct Node1{ //重点中的重点 int a; char c; Node1(int d,char e) { a=d; c=e; } bool operator==(const Node1 i) { i...
-
stl_vector复习
stl_vector复习 #include iostream #include vector #include algorithm //for_each #include ctime using namespace std; void STRConstructor() //初始化,输入 { vectorint vec(5,12); //cout vec endl; 错误 vectorint vec1(5); for(int i=0;i5;i++) cout vec1[i]...
-
stl_string复习
stl_string复习 #include iostream #include string #include algorithm using namespace std; void definition() //定义 { string str(5,'a'); cout str endl; string str1("abcdefghijklmn"); cout str1 endl; string str2("123456789",3); cout str2 endl; string s...
-
eight(待考究)
eight(待考究) 为什么明明结果都可以到达那种情况,步骤不一样就不给通过 QAQ 有哪位大佬提点一下,在下感激不尽~~~ 我的代码: #include iostream #include queue #include cstdio #include string using namespace std; int per[10]={1,1,2,6,24,120,720,5040,4032...
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash
