With i++, it's called post increment, and the value is used in whatever context then incremented; ++i is pre-increment increments the value first and then uses it in context for example: #include <iostream> usin
#include <iostream> using std::string; using std::cout; using std::endl; class Test { string member_; public: Test(const string& s) : member_(s) { } Test(const Test& copy) : member_(copy.me mber_) { cout << "copy" << endl; } void out() { cout << member_ << endl; ...