mvp - /MVP Story #include <iostream> #include...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
//MVP Story #include <iostream> #include <fstream> #include <string> using namespace std; int main() { //variable declarations ifstream inFile; ofstream outputFile; int team_num; int player_num; int sum; string mvp; //name of MVP string leadingScorer; //name of player with most points on winning team string team; //name of team string name; //name of players string team1; string team2; float p; //points scored float r; //rebounds float s; //steals float b; //blocked shots float a; //assists float y; //years in league char colon1; char colon2; char colon3; char colon4; char colon5; string winningTeam; float team1Score; string losingTeam; float team2Score; float score=0; float score2; float highestScore=0; float rating; float highestRating=0;"mvp.dat"); for(team_num=1;team_num<=2;team_num++) { getline(inFile,team); cout<<team; //Computation of Ratings and Score for(player_num=1;player_num<=5;player_num++) { getline(inFile,name); inFile>>p>>colon1>>r>>colon2>>s>>colon3>>b>>colon4>>a>>colon5>>y;
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 05/01/2011.

Page1 / 2

mvp - /MVP Story #include &lt;iostream&gt; #include...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online