正在加载图片...
OoP/ Slide 9 The dot operator for (public) members The modifier public' means that the mem ber variables can be accessed from the objects, e. g Temperature temp 1, temp2i templ degree=54.0; temp1.sca1e=NF′; temp2 degree=104.5 temp2. scale=C′ A C++ struct is a class in which all mem bers are by default publicOOP / Slide 9 temp1.degree=54.0; temp1.scale=‘F’; temp2.degree=104.5; temp2.scale=‘C’; The dot operator for (public) members Temperature temp1, temp2; The modifier ‘public’ means that the member variables can be accessed from the objects, e.g. A C++ struct is a class in which all members are by default public
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有