2010年3月22日
摘要: 2. [8] Write a program that asks the user to enter a list of strings on separate lines,printing each string in a right-justified, 20-character column. To be certain that the output is in the proper co... 阅读全文
posted @ 2010-03-22 15:37 cppfans 阅读(87) 评论(0) 推荐(0)
摘要: //s1 and s2 have same type, they're both strings that are const const string s1; string const s2; //cstr1, cstr2 and cstr3 are the same type, they're all const pointers to string string s; typedef st... 阅读全文
posted @ 2010-03-22 14:02 cppfans 阅读(184) 评论(0) 推荐(0)
摘要: 从VS粘贴的代码示例:粘贴代码结束。 阅读全文
posted @ 2010-03-22 10:28 cppfans 阅读(90) 评论(0) 推荐(0)
摘要: 下面是示例代码 示例代码结束 阅读全文
posted @ 2010-03-22 10:09 cppfans 阅读(71) 评论(0) 推荐(0)
  2010年3月21日
摘要: const对象只能调用const成员函数,而非const对象可以调用const或非const成员函数。 阅读全文
posted @ 2010-03-21 21:03 cppfans 阅读(185) 评论(0) 推荐(0)
摘要: C++构造函数不能重载为普通函数 阅读全文
posted @ 2010-03-21 20:31 cppfans 阅读(553) 评论(0) 推荐(0)