fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class FindMovie
  5. {
  6. public:
  7.  
  8. template<typename T>
  9. void printText(T text);
  10.  
  11. private:
  12.  
  13. };
  14.  
  15. template<typename T>
  16. void FindMovie::printText(T text)
  17. {
  18. cout << text;
  19. }
  20.  
  21.  
  22. int main()
  23. {
  24. FindMovie f;
  25. f.printText(1);
  26. f.printText("1");
  27. }
  28.  
  29.  
Success #stdin #stdout 0.01s 5464KB
stdin
Standard input is empty
stdout
11