https://github.com/root-project/root
Raw File
Tip revision: 87c1d2a0e691781d2ac93a4f05afee1436feaf4a authored by Pere Mato on 09 July 2014, 14:50:16 UTC
Releasing ROOT 5.34/19
Tip revision: 87c1d2a
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