2015 8 6 C 學習總結

2021-07-04 09:25:46 字數 535 閱讀 7526

唉今天顧著聊天,沒怎麼學程式設計,就只做了乙個小小個計算器,(還沒做到高精度。。),當作用來複習一下函式,switch,和do-while語句吧。

//小型計算機1.0

#include

using namespace std;

int plus(int x,int y)

int minus(int x,int y)

int times(int x,int y)

int division(int x,int y)

int mod(int x,int y)

int main()

}while (n==0);//當括號裡面的表示式是假時就跳出迴圈;這裡與pascal的repeat-until有一點相似

return 0;

}氣泡排序:(與相鄰的比)

//氣泡排序

#include

using namespace std;

int main()

}for (i=0;i<=n-1;i++)

cout}

C 學習總結

using system using system.collections.generic using system.text namespace helloworld class fraction class program console.writeline sum private static...

C 學習總結( )

1 based code 是為了向後相容用的。2 mfc提供的由cdialog派生的類 derived dialog class purpose ccolordialog 選擇顏色 cfiledialog 選擇檔名以開啟或儲存 cfindreplacedialog 查詢或替換對話方塊 cfontdi...

C 學習總結

用一段 來表示的話就是這樣了 void main int date 1 while date 17 cout 第 這種教學方式,在讓自己增長知識的同時還考驗著乙個人對堅持做一件事的決心和毅力。相對於前者來說,我感覺在社會中後者的作用可能會更大吧。現在我發現部落格對我的吸引力更大了,當看到自己的十分用...