display.h

[第2次修改]

 1 #ifndef DISPLAY_H
 2 #define DISPLAY_H
 3 #include <iostream>
 4 #include <string>
 5 #include "AI.h"
 6 #include "PLAYER.h"
 7 class PLAYER;
 8 class AI;
 9 class DISPLAY
10 {
11     public:
12         DISPLAY(std::string v):version(v){};
13         void logo();
14         void draw(AI &a,PLAYER &p);
15     private:
16         std::string version;
17 };
18 #endif
时间: 2024-08-14 18:57:05

display.h的相关文章

Cisco IOS Debug Command Reference E through H

debug eap through debug he-module subslot periodic debug eap : to display information about Extensible Authentication Protocol(EAP)(in privileged EXEC mode) no debug eap debug ecfmpal : to enable debugging of the data path of the Ethernet Connectivit

display.cpp

[无修改记录] 1 #include <iostream> 2 #include <string> 3 #include <cstdlib> 4 #include <Windows.h> 5 #include "display.h" 6 7 void DISPLAY::logo() 8 { 9 std::cout<<" "<<"**********Attack or Defend***

player.h

[第5次修改] 1 #ifndef PLAYER_H 2 #define PLAYER_H 3 #include "cards.h" 4 #include "AI.h" 5 #include "display.h" 6 class AI; 7 class DISPLAY; 8 class PLAYER 9 { 10 public: 11 friend class AI; 12 friend class USER; 13 friend class

(转)Linux下PS命令详解

(转)Linux下PS命令详解 整理自:http://blog.chinaunix.net/space.php?uid=20564848&do=blog&id=74654 要对系统中进程进行监测控制,查看状态,内存,CPU的使用情况,使用命令:/bin/ps (1) ps :是显示瞬间进程的状态,并不动态连续: (2) top:如果想对进程运行时间监控,应该用 top 命令: (3) kill 用于杀死进程或者给进程发送信号: (4) 查看文章最后的man手册,可以查看ps的每项输出的含义

Headfirst设计模式的C++实现——观察者模式(Observer)

WeatherData.h 1 #ifndef WEATHERDATA_H_INCLUDED 2 #define WEATHERDATA_H_INCLUDED 3 4 #include <set> 5 #include "Display.h" 6 7 class WeatherData 8 { 9 public: 10 void measurementsChanged(); 11 void registerObserver( Display *p_display ); 12

约瑟夫问题(循环链表的应用)

问题描述: 据说著名犹太历史学家 Josephus有过以下的故事:在罗马人占领乔塔帕特后,39 个犹太人与Josephus及他的朋友躲到一个洞中,39个犹太人决定宁愿死也不要被敌人抓到,于是决定了一个自杀方式,41个人排成一个圆圈,由第1个人开始报数,每报数到第3人该人就必须自杀,然后再由下一个重新报数,直到所有人都自杀身亡为止.然而Josephus 和他的朋友并不想遵从.首先从一个人开始,越过k-2个人(因为第一个人已经被越过),并杀掉第k个人.接着,再越过k-1个人,并杀掉第k个人.这个过程

Qt5.6.0+OpenGL 纹理贴图首战告捷

重要的话写在前面~~通过今晚的实验,知道了EBO是不能随便release的~~~一直不要release就可以了,否则vao会失效 Display.h #ifndef DISPLAYWIDGET_H #define DISPLAYWIDGET_H #include <QGLWidget> #include <QOpenGLFunctions> #include <QOpenGLBuffer> #include <QOpenGLVertexArrayObject>

class extension、class category、class-continuation category

class extension Objective-C 2.0增加了class extensions用于解决两个问题: 允许一个对象可以拥有一个私有的interface,且可由编译器验证. 支持一个公有只读,私有可写的属性. extension更像是匿名的category class category category更倾向于写在独立的文件中,之后这样命名“NSView+CustomAdditions.h”,在对应的.m文件中的block块中实现.所以,cagegory更倾向于用于对class进

google prettify 代码高亮显示

引入js和css文件 下载地址 http://files.cnblogs.com/jaday/prettify.zip js文件代码 !function(){var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; (function(){function S(a){function d(e){var b=e.charCodeAt(0);if(b!==92)return b;var a=e.charAt(1);return(b=r[a])?b:"0&quo