fork(1) download
  1. #include <iostream>
  2. template<typename T> // was missing
  3. class Car{
  4. int Car_Number;
  5. int Start_Time;
  6. int Out_Time;
  7. public:
  8. Car(const T&item = 0);
  9. ~Car();
  10. bool Get_Car_Number(T&item){
  11. item = Car_Number; return true;
  12. }
  13. bool Get_Start_Time(T&item);
  14. bool Get_Out_Time(T&item);
  15. bool Set_Start_Time(const T&item);
  16. };
  17. template<typename T> // was missing
  18. Car<T>::Car(const T&item):Start_Time(item){//this is car's constructor
  19. Car_Number = 9999 + rand() % 99999;
  20. }
  21.  
  22. int main() {
  23. // your code goes here
  24. return 0;
  25. }
Success #stdin #stdout 0s 3092KB
stdin
Standard input is empty
stdout
Standard output is empty