原创 第五週作業

#include<iostream> using namespace std; class student { public: student(int n = 0, float sc = 60) : num(n), score(sc

原创 十七週作業1

  #include<iostream>     #include<string>     #include<iomanip>   #include<fstream>     using namespace std;      

原创 第十三週作業2

#include "iostream" #include<string> using namespace std; class Animal { public: virtual void cry() {cout << "不知哪種動物,

原创 第十六週作業2

#include <fstream> #include<iostream> #include<string> using namespace std; //定義學生類 class Student { public: Student()

原创 第十五週作業3.1

#include <iostream> #include <iomanip> using namespace std; int main() { int a; cout << "input a:"; cin >> a;//輸

原创 C++,與你相伴的日子

C++,與你相伴的日子 相遇          高考下來的時刻,一看如此可憐的分,欲哭無淚。一心想着複習,明年再考。第一次報志願很慎重,想好好報或許能走了好二本。當被人家拒之門外的時候。自己一個人靜靜地看着每個學校的分數線。看着比自己分低

原创 第十六週作業3

#include <fstream> #include<iostream> #include<string> using namespace std; class Word { public: void set(string e,st

原创 第十五週作業2

// stdafx.cpp : 只包括標準包含文件的源文件 // cfraction.pch 將作爲預編譯頭 // stdafx.obj 將包含預編譯類型信息 #include "stdafx.h" #include "stdaf

原创 第十六週作業1

<pre class="cpp" name="code">#include<iostream> #include<fstream> using namespace std; class Salary { pu

原创 十五週作業1

// triangle.cpp : 定義應用程序的類行爲。 // #include "stdafx.h" #include "triangle.h" #include "triangleDlg.h" #ifdef _DEBUG #de

原创 第十四周作業2

#include<iostream> using namespace std; class Student { public: Student(int n,double s){nu

原创 第十二週作業1

#include<iostream> #include<string> using namespace std; class Student //(1)修改student類中各數據成員和成員函數的訪問限定符,

原创 第十週作業3

/* 【任務3】 (1)先建立一個Point(點)類,包含數據成員x,y(座標點); (2)以Point爲基類,派生出一個Circle(圓)類,增加數據成員 (半徑); (3)再以Circle類爲直接基類,派生出一個Cylinder(

原创 第十五週作業3.2

#include <iostream> using namespace std; int main( ) { int a = 54; cout.setf(ios::showbase);//設置輸出時的基數符號。 cout <<

原创 第十二週作業3

#include <iostream> #include<conio.h> #include <windows.h> using namespace std; enum vehicleStaus {rest, runnin