123456789101112131415161718192021
#include<iostream> using namespace std; struct payrec { string name; int idnum; double regpay; double overpay; }; int main() { payrec employee = { "John", 2346, 12.95, 19.25 }; cout << employee.name<< "'s overtime pay is: $" << employee.overpay << endl; system("pause"); return 0; }
#include<string>