Doxygen_Assn5  1
91.204 Assignment No. 5
main.cpp
Go to the documentation of this file.
1 /* File: main.cpp for project MusicLibraryReader_v2
2  * Author: Jesse M. Heines, heines@cs.uml.edu
3  *
4  * created by JMH on February 13, 2010 at 12:35 PM
5  */
6 
7 #include <string>
8 #include <cstdlib>
9 #include <iostream>
10 
11 #include "MusicLibraryReader.h"
12 // #include "GettysburgAddressReader.h"
13 
14 using namespace std ;
15 
20 int main(int argc, char** argv) {
21 
22  // test for missing command line parameter
23  if ( argc == 1 ) {
24  // inform the user that a command line parameter is missing
25  cout << "Usage: main xml-file-name" << endl << endl ;
26  return EXIT_FAILURE ;
27  }
28 
29  // process the input file
30  ReadMusicLibrary_v2_1( argv[ 1 ] ) ;
31 
32  // ReadGettysburgAddress( "GettysburgAddress.txt" ) ;
33 
34  // inform the user that the program executed to completion
35  cout << endl << "Done." << endl ;
36  return EXIT_SUCCESS ;
37 }
38 
int main(int argc, char **argv)
Definition: main.cpp:20
int ReadMusicLibrary_v2_1(string strFileName)