锘??xml version="1.0" encoding="utf-8" standalone="yes"?>精品久久久久久久无码 ,久久99精品国产麻豆,亚洲日本va中文字幕久久http://m.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://m.shnenglu.com/aslucky/articles/56637.htmlasluckyasluckySat, 19 Jul 2008 14:11:00 GMThttp://m.shnenglu.com/aslucky/articles/56637.htmlhttp://m.shnenglu.com/aslucky/comments/56637.htmlhttp://m.shnenglu.com/aslucky/articles/56637.html#Feedback0http://m.shnenglu.com/aslucky/comments/commentRss/56637.htmlhttp://m.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://m.shnenglu.com/aslucky/articles/56454.htmlasluckyasluckyThu, 17 Jul 2008 09:36:00 GMThttp://m.shnenglu.com/aslucky/articles/56454.htmlhttp://m.shnenglu.com/aslucky/comments/56454.htmlhttp://m.shnenglu.com/aslucky/articles/56454.html#Feedback0http://m.shnenglu.com/aslucky/comments/commentRss/56454.htmlhttp://m.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国产综合精品| 久久99精品国产99久久6| 777午夜精品久久av蜜臀| 久久久久久九九99精品| 开心久久婷婷综合中文字幕| 国产精品久久午夜夜伦鲁鲁| 色偷偷88欧美精品久久久| 久久国产精品99国产精| 欧美激情精品久久久久久久| 99久久精品国产高清一区二区| 麻豆久久久9性大片| 99久久精品免费看国产一区二区三区 | 久久亚洲国产成人精品性色| 久久久WWW成人| 91久久国产视频| 色婷婷综合久久久久中文一区二区| 久久久91人妻无码精品蜜桃HD| 久久Av无码精品人妻系列| 7777久久久国产精品消防器材| 伊人久久大香线蕉精品不卡| 久久久久国产精品三级网| 久久精品国产秦先生| 久久国产亚洲精品麻豆| 国产美女久久精品香蕉69| 精品蜜臀久久久久99网站| 精品熟女少妇av免费久久| 国产精品免费看久久久| 成人久久综合网| 久久综合久久综合九色| 国产成人综合久久综合 | 久久久久国产一级毛片高清版| 色综合久久中文字幕无码| 久久综合给合久久国产免费| 亚洲色婷婷综合久久| av午夜福利一片免费看久久| 久久99精品国产| 久久本道久久综合伊人| 四虎国产精品成人免费久久|