struct

From: Judith Katzy (katzy@nanalpc.phy.uic.edu)
Date: Thu Mar 12 1998 - 18:08:04 MET


hi,

I have problems to define structures in root (none of the example macros
works). What's wrong with the following:


#include "/home/katzy/root/include/TROOT.h"
#include "/home/katzy/root/include/TRint.h"

int main()
{
//TFile hfile("test.root","RECREATE","ROOT static struct test");
typedef struct {Float_t x,y,z;} POINT;
static POINT vertex;
vertex.x = 5.;
printf("vertex.x = %f\n",vertex.x);
}


thanks for help, 
Judith



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:31 MET