fork download
  1. #include <string>
  2. using std::string;
  3.  
  4. class business
  5. {
  6. public:
  7. business(); // Default Constructor
  8. business(string busines,int r)
  9. {
  10. busines=busines;
  11. ratings=r;
  12. } // constructor;
  13.  
  14. private:
  15.  
  16. string busines;
  17. int ratings;
  18. int items_owned;
  19. int business_cancellation;
  20. int biz_size_of_building;
  21. int biz_shipping_method;
  22. };
  23.  
  24. int main(int argc, char *argv[])
  25. {
  26. business b[10];
  27.  
  28. for (int b_count = 0; b_count < 10; ++b_count)
  29. {
  30. string busines;
  31. int rating = 0;
  32. b[b_count](busines,rating);
  33. }
  34.  
  35. return 0;
  36. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main(int, char**)’:
prog.cpp:32:32: error: no match for call to ‘(business) (std::string&, int&)’
stdout

Standard output is empty