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

2011年1月3日

摘要: #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 阅读(786) 评论(0) 推荐(0)