#include #include const int MAXNAME = 20; // maximum characters in a name struct PayRecord // this is a global declaration { long id; char name[MAXNAME]; float rate; }; int main() { const int NUMRECS = 5; // maximum number of records int i; PayRecord employee[NUMRECS] = { { 32479, "Abrams, B.", 6.72 }, { 33623, "Bohm, P.", 7.54}, { 34145, "Donaldson, S.", 5.56}, { 35987, "Ernst, T.", 5.43 }, { 36203, "Gwodz, K.", 8.72 } }; cout << endl; // start on a new line cout << setiosflags(ios::left); // left justify the output for ( i = 0; i < NUMRECS; i++) cout << setw(7) << employee[i].id << setw(15) << employee[i].name << setw(6) << employee[i].rate << endl; return 0; }