自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 资源 (1)
  • 问答 (1)
  • 收藏
  • 关注

原创 [C++]菱形图案

#include#include#includeusing namespace std;int main(){ for (int i = 0; i < 7; i++) { for (int j = 0; j < 16 - i; j++) cout << ' '; for (int j = 0; j < 2*i + 1; j++) cout << '*';

2015-11-26 16:22:03 5468

原创 [C++]分数计算器(四则运算)class

//main.cpp#include#include"Rational.h"using namespace std;void main(){ Rational calculate; calculate.Set(); calculate.Judge(); return;}//Rational.hclass Rational{public: void Set()

2015-11-22 22:07:29 2732

原创 [C++]小数转化为分数(class)

/*Rational.cpp*/#include "Rational.h"#include#include#includeusing namespace std;void Rational::change(string num, int fz, int fm){ bool flag = 0; char ch; for (int i = 0; i < num.length(

2015-11-15 20:24:01 6362 1

原创 [C++]时间格式转换器24转为12(class)

//TIme.hclass TimeType{public: int hour; int minute; int second; void WriteAMPM(int &hour,int &minute,int &second);private:};//TIme.cpp#include "TIme.h"#includeusing namespace std;void

2015-11-15 12:22:31 723

原创 [C++]查找文件中的一串字符串

#include#include#includeusing namespace std;void main(){ cout << "**************************************************search engine*******************************************************" << end

2015-11-15 10:02:10 2652

原创 [C++]百钱买百鸡

#include#includeusing namespace std;void main(){ int gj, mj, xj; for (gj = 1; gj < 15; gj++) { for (mj = 1; mj <= 20; mj++) { for ( xj = 3; xj <=100; xj+=3) { if ((gj+mj+xj==100

2015-11-14 17:32:54 1457 3

原创 [C++]sales-reporter

1.使用前需要把数据文件放置在exe程序同一文件夹内。2.数据文件内容可修改,有且仅有8对数据,否则会报错(已预置sales.txt文件,格式可参照修改,第一列为itemNumber,第二列为对应的unitePrice)3.双击exe运行,根据提示输入数据文件名称,存放结果数据文件名称,salesperson lastname(内置z1-z10),item number,quantity。

2015-11-14 11:17:41 320

原创 [c++]万年历

#include#includeusing namespace std;void main(){ int monthDay[12] = { 31,0,31,30,31,30,31,31,30,31,30,31 };\\确定每个月的天数 cout << "please enter the year" << endl; int year; cin >> year; if (y

2015-11-14 11:16:51 605

2016-2017华东师大Android课程期末上机考试1、4、5、7题答案

2016-2017华东师大Android课程期末上机考试1、4、5、7题答案

2017-06-20

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除