fork download
  1. #include <iostream>
  2. using namespace std;
  3. class bus
  4. {public:
  5. char name[20];
  6. int type;
  7. int oc;
  8. int rt;
  9. bus()
  10. {
  11. name[20]='a';
  12. type=1;
  13. oc=1;
  14. rt=1;
  15. }
  16. bus(char a[20],int b)
  17. {
  18. name[20]=a[20];
  19. type=b;
  20. }
  21. bus(char a[20],int b,int c,int R)
  22. {
  23. name[20]=a[20];
  24. type=b;
  25. oc=c;
  26. rt=R;
  27. }
  28. };
  29. int main() {
  30. // your code goes here
  31. return 0;
  32. }
Success #stdin #stdout 0s 3452KB
stdin
Standard input is empty
stdout
Standard output is empty