topical media & game development
// Read a number and a name
void GetData(int& number, char name)
cout << "Enter a number: ";
cin >> number;
if (number != 0)
cout << endl << "And a name: ";
cin >> name;
void PutData(int number, char name)
cout << endl << "Thank you. Your number and name were "
<< number << " and \"" << name << "\"" << endl;
if (number == 0)
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.