My exercise on C, C++, C++0x and C++11.
#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;}
No comments:
Post a Comment