assign9 - outFile<<"number of...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include <iostream> #include <fstream> #include <string> # using namespace std; u int main() { ifstream inFile; ofstream outFile; int numberCandidates; string *n; int numberVotes; "vote.txt" ); "voteOut.txt" ); inFile >> numberCandidates;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: outFile << "number of candidates: " << numberCandidates << endl; n = new string election[numberCandidates][3]; for ( int index = 0; index < numberCandidates; index++ ) cin >> election[index][1]; }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online