原创 期末複習

Number 1 Write a program to determine the ranges of char , short , int , and long variables, both signed and unsigned

原创 struck有關與集合有關

what a fucking day this morning , though I really wanted to take history class which is the last lesson of this term,

原创 雜記

時間過得好快,回到家裏已經快兩個星期了。 年關將近,家裏的人也忙忙碌碌的。 回到了久別的家鄉,一切還是那麼的熟悉。 以前吃膩了的家裏的飯,現在吃起來是那麼可口,前幾天還夢到高考

原创 優先隊列priority queue

優先隊列是分優先級的隊列 題目 The only printer in the computer science students’ union is experiencing an extremely heavy workload.

原创 組合數與排列二叉樹

2016年1月6日 晴 手機鈴聲已經響過了,然而自己還是不想起牀 想想今天要去上程設課就頭疼 自從開始學習指針,我就稀裏糊塗的,作業都按時完成不了,好憂傷 從牀上下來打開電腦開始苦逼的打代碼 計算係數 給出一個多項式(x+y

原创 C++ Namespace命名空間和static的用法總結

Namespaces are used to prevent name conflicts. Ways to Use Namespace Identifiers use a qualified name consisting of th

原创 判斷二叉樹是否對稱

判斷一棵二叉樹是否對稱。二叉樹節點定義如上次的結構相同: typedef struct node { int x; struct node* left; struct node* right; } BN;

原创 銀行賬戶問題

Suppose there is a class PersonalAccount, which has a private member variable balance (type: integer and value is 0 at

原创 文章標題

NUMBER 1 給出兩個正整數m和n,請求出這個兩個數的最大公約數(greatest common divisor,後面簡寫爲gcd)和最小公倍數( least common multiple,後面簡稱lcm)。 測試樣例: i

原创 人生第一次寫的代碼

開始記錄學習程序設計的歷程 從零開始學習打代碼 第一次打的代碼 #include<stdio.h> int main() { int num; printf("\nPlease input a number:");

原创 新學期 新生活

新學期已經開始了! 儘管我很不想不想來學校,但是沒法避免。 這學期要更加努力學習C++,要讓自己的成績好看一點哦。 第一節實驗課 Give you two strings a, b, determine whether strin

原创 刪除相同字符

刪除兩個字符串數組中相同的字符 Description In this exercise, you will get two strings A and B in each test group and the length of e