topical media & game development
professional-program-20-ArticleCitations-ArticleCitationsTest.c
? /
professional-program-20-ArticleCitations-ArticleCitationsTest.c
include "CoutDebugging/ArticleCitations.h"
include <iostream>
using namespace std;
void processCitations(ArticleCitations cit);
int main(int argc, char** argv)
{
string fileName;
while (true) {
cout << "Enter a file name (\"STOP\" to stop): ";
cin >> fileName;
if (fileName == "STOP") {
break;
}
// Test constructor
ArticleCitations cit(fileName);
processCitations(cit);
}
return (0);
}
void processCitations(ArticleCitations cit)
{
cout << cit.getArticle() << endl;
int num = cit.getNumCitations();
for (int i = 0; i < num; i++) {
cout << cit.getCitation(i) << endl;
}
}
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.