https://github.com/root-project/root
Raw File
Tip revision: dc23f9fcef6b528a41995f8ce10463d5330581e6 authored by Fons Rademakers on 27 October 2012, 21:18:24 UTC
tag patch release v5-34-03.
Tip revision: dc23f9f
t705.cxx
/* -*- C++ -*- */
/*************************************************************************
 * Copyright(c) 1995~2005  Masaharu Goto (root-cint@cern.ch)
 *
 * For the licensing terms see the file COPYING
 *
 ************************************************************************/

#include <cstdio>
#include <iostream>
#include <sstream>

#if defined(__CINT__) && !defined(INTERPRET)
#pragma include "test.dll"
#else
#include "t705.h"
#endif

using namespace std;

int main(int argc, char** argv)
{
   char a[10];
   int i;
   for (i = 0; i < 3; ++i) {
      if (!i) {
         continue;
      }
      istringstream is(" aa bb cc ");
      is >> a;
      cout << "a: " << a << endl;
   }
   for (i = 0; i < 3; ++i) {
      if (!i) {
         continue;
      }
      A b(i);
      printf("b:%d\n", b.get());
   }
   return 0;
}
back to top