Thursday, September 8, 2011

References

#include <iostream>

using namespace std;

int main()
{
string name = "Eric L";
string& refName = name;
cout << refName << endl;

refName = "Changed!";
cout << refName << endl;
cout << name << endl;
return 0;
}




References

No comments:

Post a Comment