测试
水星灭绝
meiyou
展开
-
C++纯虚函数接口
<br />#include "iostream"<br />using namespace std;<br /><br />class Shape<br />{<br /> public:<br /> virtual int GetName() const=0;<br /><br />};<br /><br />class Circle: public Shape<br />{<br /> public:<br />原创 2010-12-22 14:50:00 · 596 阅读 · 0 评论 -
c++接口与容器结合
#include "iostream"#include "vector"using std::cout;using std::cin;using std::endl;using std::vector;using std::string;class Shape{public: virtual void Get() = 0;};class Line: publ原创 2010-12-22 17:58:00 · 545 阅读 · 0 评论 -
lua写一个排座次的算法
local chair=0local id=0local count=3if #arg == 3 then local myID = tonumber(arg[1]) local dstID = tonumber(arg[2]) local chairCount = tonumber(arg[3]) --v= math.原创 2018-01-25 16:03:53 · 234 阅读 · 0 评论 -
写了个获取终端日志并存成文件的脚本
能交给电脑做的事就不要手工做。环境变量脚本hs_env.sh#!/bin/bash######################################@author andrew######################################G_ROOT_DIR=$(pwd $(dirname $0) )G_LOG_DIR=${G_ROOT_DIR}...原创 2018-08-30 14:03:43 · 437 阅读 · 0 评论