topical media & game development

talk show tell print

professional-program-17-NameDB-SecondAttempt-NameDBTest.c

? / professional-program-17-NameDB-SecondAttempt-NameDBTest.c


  include <NameDB.h>
  
  include <iostream>
  using namespace std;
  
  int main(int argc, char** argv)
  {
    NameDB boys("../boys_long.txt");
  
    cout << boys.getNameRank("Daniel") << endl;
    cout << boys.getNameRank("Jacob") << endl;
    cout << boys.getNameRank("William") << endl;
  
    cout << boys.getAbsoluteNumber("Daniel") << endl;
  
    return (0);
  }
  


(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.