2019年3月14日 星期四

【CMoney - HW4】改寫程式

1

【CMoney - HW3】 C++ 輸入日期顯示星期、推算幾天前後的日期、輸入年月輸出月曆

以下列enum與struct設計日期星期查詢程式。
須考慮閏年因素
已知條件為: 2019/3/12 TUE


實現功能:
1. 以日期查詢星期
2. 以某日往後及往前若干天推算日期
3. 以月曆型式輸出某給定年月

【CMoney - HW2】 字串處理


  1. 輸入以下字串,並以空格切斷,分切並儲存於字串陣列,再將字串陣列顯示出來。
  2. 將字串依ASCII值排序。
  3. 依程式功能設計幾個function,以下程式碼為示意。

I believe we should be working towards a world where people can speak privately and live freely knowing that their information will only be seen by who they want to see it and won't all stick around forever.

2019年3月12日 星期二

C++ struct 延伸(靜態記憶體 & 動態記憶體)

以下是靜態記憶體 & 動態記憶體的使用

靜態記憶體是由工程師自行定義Array的大小

動態記憶體則是將Array的大小設置成指標
讓工程師可以自行變更

2019年3月11日 星期一

C++ struct 用法

此範例為讓一個隨著Sleep函數,持續在執行的程式
並利用了struct 和 取址運算子去讓 time struct 的秒數一直增加

Android Studio IDE 錯誤

 :app:compile xxxxx JavaWithJavac FAILED An exception has occurred in the compiler (1.8.0_312). Please file a bug against the Java compiler ...