Guest User

Untitled

a guest
Aug 19th, 2019
72
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. template <typename T1, typename T2, typename T3>
  2. class MyClass
  3. {
  4. public:
  5. void TestFru(T1 x, T2 y, T3 z)
  6. {
  7. cout << x << y << z << "Fru" << endl;
  8. }
  9. void TestDou(T1 x, T2 y, T3 z)
  10. {
  11. cout << x << y << z << "Dou" << endl;
  12. }
  13. };
  14.  
  15. template <typename T1, typename T2, typename T3>
  16. void Bublu(T1 x, T2 y, T3 z)
  17. {
  18. MyClass<T1, T2, T3>::TestFru(x, y, z); // не получается вызвать
  19. MyClass<T1, T2, T3>::Due(x, y, z);
  20. }
  21.  
  22. int main()
  23. {
  24. Bublu(2, "23", 7);
  25.  
  26. return 0;
  27. }
RAW Paste Data