https://github.com/root-project/root
Raw File
Tip revision: 2cd3aafb76e161c5e687de877863ffeb4022b4b0 authored by Gerardo Ganis on 11 June 2012, 16:52:22 UTC
Import patch r44048 removing the automatic creation of TDrawFeedback in TProofChain
Tip revision: 2cd3aaf
t674.h
/* -*- C++ -*- */
/*************************************************************************
 * Copyright(c) 1995~2005  Masaharu Goto (cint@pcroot.cern.ch)
 *
 * For the licensing terms see the file COPYING
 *
 ************************************************************************/

#include <stdio.h>
#include <string.h>

class string {
  char buf[100];
 public:
  string() { printf("string()\n"); buf[0] = 0; }
  string(const char* x) { printf("string(%s)\n",x); strcpy(buf,x); }
  string(const string& x) {
    printf("string((string)%s)\n",x.c_str()); 
    strcpy(buf,x.c_str()); 
  }
  ~string() { printf("~string(%s)\n",buf); }
  const char* c_str() const { return(buf);}
};
back to top