正在加载图片...
Basic C++(cont) ■ Add a new comment mark ∥/For1 line comment /.*/for a group of line comment New data type Reference data type & Much likes pointer nt ix/*ix is real variable * int&rx=ⅸ;/rxis"aias"forⅸ* ⅸ=1;/ also rx==1* rx=2:/alsoⅸ==2* const support for constant declaration, just likes C9 Basic C++ (cont) ◼ Add a new comment mark ◼ // For 1 line comment ◼ /*… */ for a group of line comment ◼ New data type ◼ Reference data type “&”. Much likes pointer int ix; /* ix is "real" variable */ int & rx = ix; /* rx is "alias" for ix */ ix = 1; /* also rx == 1 */ rx = 2; /* also ix == 2 */ ◼ const support for constant declaration, just likes C
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有