fork download
  1. #include <string>
  2. #include <iostream>
  3.  
  4.  
  5. using namespace std;
  6.  
  7. class Version {
  8. public:
  9. string vStr;
  10. Version(string _str) : vStr(_str) {}
  11. Version(const char *_str): vStr(_str) {}
  12. };
  13.  
  14. void printVersion(const Version &f)
  15. {
  16. cout << f.vStr << endl;
  17. }
  18.  
  19. int main()
  20. {
  21. printVersion("v1.1.0");
  22. return 0;
  23. }
  24.  
Success #stdin #stdout 0s 2984KB
stdin
Standard input is empty
stdout
v1.1.0