- 博客(8)
- 收藏
- 关注
原创 c++_primer_exercise_1911_1912
Exercise 19.11:Normally a pointer points to an object, but a pointer to member identifies a member of class, not an object of that class.Exercise 19.12#ifndef SCREEN_H#define SCREEN_H
2015-03-13 14:51:00 375
原创 c++_primer_exercise_1903_1904_1905
Exercise 19.3:(b) fail. Exercise 19.4:try{C &rc = dynamic_cast(*pa);}catch (bad_cast){// handle the fact that the cast failed}Exercise 19.5:the dynamic_cast and typei
2015-03-12 18:01:14 417
原创 c++_primer_exercise_1739
#include using std::cerr; using std::endl;#include using std::fstream;#include using std::string;int main(){ // open for input and output and preposition file pointers to end-of-
2015-03-04 18:29:25 393
原创 c++_primer_exercise_1731_1732
code:#include using std::default_random_engine;using std::bernoulli_distribution;#include using std::string;#include using std::cin; using std::cout; using std::endl;int main()
2015-03-03 13:52:47 484
原创 c++_primer_exercise_1728_1729_1730
/************************************************* * IDE: VS2010 *************************************************/#include using std::cin; using std::cout; using std::endl;#include usin
2015-03-03 10:20:07 387
原创 c++_primer_exercise_1724_1725_1726_1728
/**************************************************** * IDE: VS2010 ****************************************************/#include using std::cin; using std::cout; using std::endl;#include
2015-03-02 18:46:31 422
原创 c++_primer_exercise_1719_1720
exercise 17.19:str() Returns a string containing the matched portion of the input. Returns the empty string if matched is false. So, it is not necessary to check whether m[4] was matched.
2015-03-02 15:19:26 466
原创 c++_primer_exercise_1653
/****************************************************************** * IDE: VS2013(maybe VS2010 not support variadic template) ******************************************************************/#
2015-03-01 10:22:44 344
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人