博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

01 2011 档案

摘要:strategy.h头文件#ifndef STRATEGY_H #define STRATEGY_H#include qstring.h#include ctype.h#include string.hclass CashSuper{public: virtual double GetCashResult(const double &money)=0;};class CashNormal:public CashSuper{public: double GetCashResult(const double &money) { return money; }};class CashRe 阅读全文

posted @ 2011-01-05 11:20 ccmfc 阅读(1069) 评论(0) 推荐(1)

摘要:#include <stdio.h>void showrhomb1(const int num){int i=1;int j=1;for(; i<=num; i++){for(j=1; j<=num-i; j++)printf(" ");for(j=1; j<=2*i-1; j++)printf("* ");printf("\n");}for(i=1; i<num; i++){for(j=1; j<=i; j++)printf(" ");for(j=1; j<=2*( 阅读全文

posted @ 2011-01-03 20:39 ccmfc 阅读(211) 评论(0) 推荐(1)

摘要:#ifndef ARITHOPERATOR_H#define ARITHOPERATOR_H#define EPS 0.000000000001class ArithOpe{public: virtual double GetArithOpeResult()const { return 0.0; } double GetArithOpeNum1()const { return this-m_num1; } double GetArithOpeNum2()const { return this-m_num2; } void SetArithOpeNum1(const double& num1 阅读全文

posted @ 2011-01-03 13:58 ccmfc 阅读(787) 评论(0) 推荐(0)