New Text Document

New Text Document -...

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

View Full Document Right Arrow Icon
Sheet1 Page 1 #include<iostream> #include<fstream> #include<string> #include <iomanip> using namespace std const int MAX=25 const string CONTRIBUTORS_FILE = "names.txt" const string CONTRIBUTION_FILE = "slush.txt" struct Contributor { string company double amount } Contributor ContributorArray[MAX] C void SortContributions(Contributor[], int) int main () { int numContributors = 0 i cout<<"-----------------------------------------"<<endl cout<<" Campaign Contributions "<<endl cout<<"-----------------------------------------"<<endl Initialize (ContributorArray, numContributors) cout<<"_=_=_=_"<<endl<<endl SortContributions(ContributorArray, numContributors) for(int i = 0 i < numContributors i++) { cout<<i<< ". "<<ContributorArray[i].company<<endl cout<< "has donated a total of: " cout<<ContributorArray[i].amount cout<<endl<<endl } return 0 } { string temp
Background image of page 1

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

View Full DocumentRight Arrow Icon
Sheet1 Page 2 string temp2
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/20/2008 for the course GEO 1414 taught by Professor Steinberg during the Spring '08 term at FSU.

Page1 / 3

New Text Document -...

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

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