// Written by Susan Rogers at Duke University // Example of using function prototypes #include #include using namespace std; void TellAll(string, int); void HowOld(string name) { int age; cout << "How old is " << name << "? "; cin >> age; TellAll(name, age); } void TellAll(string person, int age) { cout << person << " is " << age << " years old" << endl; } int main() { HowOld("Fred Flintstone"); HowOld("Mickey Mouse"); return 0; }