2009年5月21日
以前一直沒有明白struct結構體與class類 的區別:(1) 名字不同一個是struct,一個是class(2) 默認的訪問屬性不同 struct是public,class 是private
posted @ 2009-05-21 22:19 彈杯一笑 閱讀(229) | 評論 (0) | 編輯 收藏
2009年5月12日
posted @ 2009-05-12 10:44 彈杯一笑 閱讀(871) | 評論 (0) | 編輯 收藏
2009年4月1日
posted @ 2009-04-01 23:17 彈杯一笑 閱讀(418) | 評論 (0) | 編輯 收藏
2009年3月30日
// essential c++ 向一個容器(比如 vector)中添加數字后,然后隨便輸入待比較的數字( int a ;),求找出在vector中比a大的數字,比a小的數字,和a相等的數字,或者是a的3倍,5倍等之類的數字的集合.//開始看下面的代碼之前,你是怎么思考的呢?你是不是覺得直接在里面寫個函數比較就是了?或者是其他的呢?
posted @ 2009-03-30 23:54 彈杯一笑 閱讀(399) | 評論 (0) | 編輯 收藏
Powered by: C++博客 Copyright © 彈杯一笑