锘??xml version="1.0" encoding="utf-8" standalone="yes"?>精品久久久久久久无码 ,久久99精品国产麻豆,亚洲日本va中文字幕久久http://www.shnenglu.com/aslucky/category/7582.htmlC++zh-cnSat, 19 Jul 2008 16:04:57 GMTSat, 19 Jul 2008 16:04:57 GMT60Boost Study step1 浠嬬粛http://www.shnenglu.com/aslucky/articles/56637.htmlasluckyasluckySat, 19 Jul 2008 14:11:00 GMThttp://www.shnenglu.com/aslucky/articles/56637.htmlhttp://www.shnenglu.com/aslucky/comments/56637.htmlhttp://www.shnenglu.com/aslucky/articles/56637.html#Feedback0http://www.shnenglu.com/aslucky/comments/commentRss/56637.htmlhttp://www.shnenglu.com/aslucky/services/trackbacks/56637.html
Most Boost libraries are header-only: they consist entirely of header files containing templates and inline functions, and require no separately-compiled library binaries or special treatment when linking.

澶ч儴鍒嗙殑搴撻兘鏄互澶存枃浠剁殑褰㈠紡鎻愪緵鐨勪笉闇瑕佺紪璇戙?br>
浠ヤ笅鐨勫簱鏄渶瑕佸垎鍒崟鐙紪璇戠殑

The only Boost libraries that must be built separately are:

榪樻湁鍑犱釜鏄彲閫夌紪璇戠殑
A few libraries have optional separately-compiled binaries:

  • Boost.DateTime has a binary component that is only needed if you're using its to_string/from_string or serialization features, or if you're targeting Visual C++ 6.x or Borland.
  • Boost.Graph also has a binary component that is only needed if you intend to parse GraphViz files.
  • Boost.Test can be used in “header-only” or “separately compiled” mode, although separate compilation is recommended for serious use.


aslucky 2008-07-19 22:11 鍙戣〃璇勮
]]>
Constant Member Functionshttp://www.shnenglu.com/aslucky/articles/56454.htmlasluckyasluckyThu, 17 Jul 2008 09:36:00 GMThttp://www.shnenglu.com/aslucky/articles/56454.htmlhttp://www.shnenglu.com/aslucky/comments/56454.htmlhttp://www.shnenglu.com/aslucky/articles/56454.html#Feedback0http://www.shnenglu.com/aslucky/comments/commentRss/56454.htmlhttp://www.shnenglu.com/aslucky/services/trackbacks/56454.html

Declaring a member function with the const keyword specifies that the function is a "read-only" function that does not modify the object for which it is called.

To declare a constant member function, place the const keyword after the closing parenthesis of the argument list. The const keyword is required in both the declaration and the definition. A constant member function cannot modify any data members or call any member functions that aren't constant.

// constant_member_function.cpp
class Date
{
public:
   Date( 
int mn, int dy, int yr );
   
int getMonth() const;     // A read-only function
   void setMonth( int mn );   // A write function; can't be const
private:
   
int month;
}
;

int Date::getMonth() const
{
   
return month;        // Doesn't modify anything
}

void Date::setMonth( int mn )
{
   month 
= mn;          // Modifies data member
}

int main()
{
   Date MyDate( 
741998 );
   
const Date BirthDate( 1181953 );
   MyDate.setMonth( 
4 );    // Okay
   BirthDate.getMonth();    // Okay
   BirthDate.setMonth( 4 ); // C2662 Error
}


aslucky 2008-07-17 17:36 鍙戣〃璇勮
]]>
久久毛片免费看一区二区三区| 久久亚洲中文字幕精品有坂深雪 | 国产精品99精品久久免费| 久久久青草久久久青草| 色综合久久精品中文字幕首页| 国产综合成人久久大片91| 久久这里只有精品视频99| 色偷偷88888欧美精品久久久| 99久久99久久| 污污内射久久一区二区欧美日韩 | 久久免费小视频| 久久久久久久综合日本| 久久精品国产亚洲av影院| 久久精品中文字幕一区| 日韩精品久久无码人妻中文字幕| 国产午夜电影久久| 国产成年无码久久久免费| 精品久久久久久无码免费| 久久久久久亚洲精品成人 | 东方aⅴ免费观看久久av| 久久国产成人亚洲精品影院| 欧美黑人又粗又大久久久| 久久无码精品一区二区三区| 国产精品免费福利久久| 久久久久久久波多野结衣高潮 | 伊人久久综合无码成人网| 亚洲а∨天堂久久精品9966| 99久久精品免费| 亚洲午夜精品久久久久久人妖| 精品人妻伦九区久久AAA片69| 亚洲av日韩精品久久久久久a| 国产精品伦理久久久久久| 国产情侣久久久久aⅴ免费| 香蕉久久av一区二区三区| 久久精品国产色蜜蜜麻豆| 久久免费视频1| 中文成人久久久久影院免费观看| 国产激情久久久久影院老熟女免费| 久久免费美女视频| 99久久免费只有精品国产| 欧美亚洲另类久久综合|