Argument Passing by Value or Reference
#include // To read from the standard input, we write std::cin. These names use the // scope operatro(::), which says that the compiler should look in the scop // of the left-hand operand for the name of the right-hand operand. Thus, // std::cin says that we want to use the name string from the namespace std. // Referring to library names with this notation can be cumbersome. // Fortunately, there are easier ways to use namespace members. The safest // way is a **using declaration.** // A using declaration lets us use a name from a namespace without // qualifying the name with a namespace_name::prefix. A using declaration // has the form // using namespace::name: // Once the using declaration has been made, we can access name directly: // #include // uisng std::cin; // int main() // { // int i; // cin >> i; // ok: cin is a synonym for std::cin // cout using std::string; // Passing arguments by value void reset_passed_by_value(int *ip) { *ip = 0; // ch...