Electrical and Computer Engineering
5 of 24
UAH
CPE 112
One Function Program Example
•//************************************************************
•// PrintName program
•// This program prints a name in two different formats
•//************************************************************
•#include <iostream>
•#include <string>
•
•using namespace std;
•
•const string FIRST = "Herman";    // Person's first name
•const string LAST = "Smith";      // Person's last name
•const char   MIDDLE = 'G';        // Person's middle initial
•
•