assign9 - outFile <<...

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 &lt;&lt; &quot;number of candidates: &quot; &lt;&lt; numberCandidates &lt;&lt; endl; n = new string election[numberCandidates][3]; for ( int index = 0; index &lt; numberCandidates; index++ ) cin &gt;&gt; election[index][1]; }...
View Full Document

Ask a homework question - tutors are online