SHARE
TWEET

Untitled

a guest May 21st, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Bet
  2. {
  3.     int number;
  4.     std::string description;
  5.     double course;
  6.     std::vector <double> courses;//
  7.     double getcourse1(int i){return courses[i];}//
  8.  
  9. void Bet::addcourse1(double c )///
  10. {
  11.     courses.push_back(c);
  12. }
  13.  
  14.  
  15. while(file >> number >> description >> course)
  16. {  
  17.     bet.setNumber(number);
  18.     bet.setDescription(description);
  19.     bet.setCourse(course);
  20.     bet.addcourse1(course);//
  21.     e.addBet(bet);
  22.    
  23.     Event& ev = b.getEvent(counter/3);
  24.     ev.addBet(bet);
  25.     counter++;
  26. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top