fork(1) download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. class BigInt {
  5. public:
  6. int sign;
  7. string s;
  8.  
  9. BigInt()
  10. : s("")
  11. {
  12. }
  13.  
  14. BigInt(string x)
  15. {
  16. *this = x;
  17. }
  18.  
  19. BigInt(int x)
  20. {
  21. // s=to_string(x);
  22. this->s = to_string(x);
  23. cout<<s<<" "<<sign<<" ";
  24. }
  25. };
  26. int main() {
  27. int s=5;
  28. BigInt a(78);
  29. return 0;
  30. }
Success #stdin #stdout 0s 4872KB
stdin
Standard input is empty
stdout
78 418374328