// Labstruc.cpp Start of a program for a lab on structs for CPS 171 // J.Remen Fall 98 Updated Oct 00 for Visual C++ #include#include #include using namespace std; // declare a struct here with fields for the first // name, last name and salary int main() { // declare variables for two players here ifstream infile; infile.open("labstruc.dat"); if (!infile) { cout << "Unable to open data file\n"; return 1; } // read the information for the 2 players // and echo the data infile >> cout << // Find and print the name of the player with the higher salary if( ) cout << else cout << return 0; }