yeah, I'm still unclear which specific line number it refers to so I'll guess that it is reading a double instead of an integer so the parameters don't match
26 2 F:\Class stuff\Programming\Object-Oriented Programming\Homework\Project 2\Project_Artwork\Project2_main.cpp [Error] 'Art4' was not declared in this scope
1 2 3 4 5 6 7 8 9 10 11
Art4.make_bid(0, 9979, "", "", "", 0);
double amount = 60000;
Art4.make_bid(amount, 0);
cout << Art4.getbidderID () << " has bid $" << amount << endl;
if (Art4.make_bid(201.50, 2047) )
cout << "Bingo " << Art4.getbidderID() << " you're now the highest bidder\n" << endl;
else
cout << "Sorry " << Art4.getbidderID() << " your bid is invalid\n" << endl;
line 2 should be artwork Art4( blah blah the same );
1 2 3 4 5 6 7 8 9 10
artwork Art4(0, 9979, "", "", "", 0); // create an artwork object called Art4
double amount = 60000;
Art4.make_bid(amount, 0); // a bid is made for Art4
cout << Art4.getbidderID() << " has bid $" << amount << endl; // Art4's latest bidder ID
if (Art4.make_bid(201.50, 2047) ) // new bid made, is it a good one
cout << "Bingo " << Art4.getbidderID() << " you're now the highest bidder\n" << endl;
else
cout << "Sorry " << Art4.getbidderID() << " your bid is invalid\n" << endl;
Best way to check is run the program but it looks OK to me. A bit frustrating but you'll get there soon.
Should they read artwork.make_bid()?
No. This has been part of the problem. Only objects can make_bd(), classes can't. The class tells its objects how to make_bid() but don't actually do it.