fork download
  1. template < typename Type >
  2. struct Punkt
  3. {
  4. Type x;
  5. Type getX( );
  6. };
  7.  
  8. template < typename Type >
  9. Type Punkt<Type>::getX( )
  10. {
  11. return x;
  12. }
  13.  
  14. int main()
  15. {
  16. Punkt<int> tmp;
  17.  
  18. return 0;
  19. }
Success #stdin #stdout 0s 3336KB
stdin
Standard input is empty
stdout
Standard output is empty