https://github.com/root-project/root
Raw File
Tip revision: 1fdb31cca731de0fb52dfc58fb829486d6fa5b32 authored by Fons Rademakers on 11 October 2009, 20:36:51 UTC
tag patch release v5-22-00e.
Tip revision: 1fdb31c
simple19.cxx
#ifdef __hpux
#include <iostream.h>
#else
#include <iostream>
using namespace std;
#endif

template <class tp>
void printstatement(tp stm)
{
  cout << "Argument is : " << stm << endl;
}

class test
{
public:
  test(void) {
     const char * stm = "long message";
     cout << "Argument is : " << stm << endl;
     printstatement("This is a very long string");
  }
};

int main() {
   const char * stm = "long message";
   cout << "Argument is : " << stm << endl;
   printstatement("This is a very long string");
  test *Test=new test;
}
back to top