目前分類:C++ (23)

瀏覽方式: 標題列表 簡短摘要

think:
 

布拉怡 發表在 痞客邦 留言(1) 人氣()

1.  題目:

    想看看輸出結果是什麼

布拉怡 發表在 痞客邦 留言(0) 人氣()

1.  題目:ab次方
                cin 輸入練習

布拉怡 發表在 痞客邦 留言(0) 人氣()

think:
i++
會先執行後加1

文章標籤

布拉怡 發表在 痞客邦 留言(0) 人氣()

題目:計算1加到100
     使用
while

文章標籤

布拉怡 發表在 痞客邦 留言(0) 人氣()

題目:

定義一個類別Cafeshop,有著帶著參數的成員函數(member function)

布拉怡 發表在 痞客邦 留言(0) 人氣()

題目:
類別物件輸出字串

文章標籤

布拉怡 發表在 痞客邦 留言(0) 人氣()

1. 宣告函數標頭檔 drink.h

#include <string>

文章標籤

布拉怡 發表在 痞客邦 留言(0) 人氣()

1.  首先開啟一個標頭檔: drink.h

#include <iostream>

布拉怡 發表在 痞客邦 留言(0) 人氣()

#include <iostream>
 
文章標籤

布拉怡 發表在 痞客邦 留言(0) 人氣()

class的基礎小練習
 
文章標籤

布拉怡 發表在 痞客邦 留言(0) 人氣()

#include <iostream>
#include <cstdlib>

布拉怡 發表在 痞客邦 留言(0) 人氣()

//mytime0.h -- Time class before operator overloading
#ifndef MYTIME0_H_

布拉怡 發表在 痞客邦 留言(0) 人氣()

#include <iostream>

using namespace std;

布拉怡 發表在 痞客邦 留言(0) 人氣()

//swaps.cpp -- swapping with references and with pointers
#include <iostream>

布拉怡 發表在 痞客邦 留言(0) 人氣()

#include <iostream>

/* secref.cpp -- defining and using a reference */

布拉怡 發表在 痞客邦 留言(0) 人氣()

#include <iostream>

/* firstref.cpp -- defining and using a reference */

布拉怡 發表在 痞客邦 留言(0) 人氣()

#include <iostream>

/* inline.cpp --use an inline function */

布拉怡 發表在 痞客邦 留言(0) 人氣()

#include <iostream>
#include <ctime>

布拉怡 發表在 痞客邦 留言(0) 人氣()

#include <iostream>

/*hexoct----shows value inhex and octal */

布拉怡 發表在 痞客邦 留言(0) 人氣()

1 2