How do I sort blog entries by categories?
C/C++ Programming
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Ñîîáùåñòâà
• Talxy Chat
• Horoscope
• Online
 
Çàðåãèñòðèðóéñÿ!

QAIX > C/C++ ProgrammingGo to page: « previous | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | next »

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:
Friday, 22 December 2006
[ROOT] Writing TClonesArray to File Oliver Oberst 16:23:24
 Hello,

I am writing a rootinterface for a MC Generator. I wrote my on
eventclass, verticesclass and particleclass all inheriting from TObject.
Now in the interface i make a tree and give a Branch the events address.
in This eventbrach i want to have a TClonesArray of my vertexobjects.
I built the dictionary and it worked so that the event and the vertex
class have their own streamer.
I tested the TClonesarray in the code so that i now know that filling
the TClonesArray workes(I can readout vertex members after filling the
array).
I think the problem is when the event streamer calls the
'TClonesArrayobject­'->Streamer(b) and there the Vertex Streamer is not
called. Because i only see the events members as leafes and one leaf
with the name of the TClonesArray. Normaly it should be browsable
because i split the tree (with 99). I now do not see why the
TClonesArray with my Vertex Objects are not streamed in the file and it
is not browsable...

Code:
-------------------­--------------------­--------------------­--------
Streamers in dictionary which is linked in my shared lib:

void HepMCEvent::Streame­r(TBuffer &R__b)
{
// Stream an object of class HepMCEvent.

UInt_t R__s, R__c;
if (R__b.IsReading()) {
Version_t R__v = R__b.ReadVersion(&R­__s, &R__c); if (R__v) { }
TObject::Streamer(R­__b);
R__b >> signal_process_id;
R__b >> event_number;
R__b >> event_scale;
R__b >> alphaQCD;
R__b >> alphaQED;
R__b >> vertices_size;
Vertices->Streamer(­R__b);
R__b.CheckByteCount­(R__s, R__c, HepMCEvent::IsA());­
} else {
R__c = R__b.WriteVersion(H­epMCEvent::IsA(), kTRUE);
TObject::Streamer(R­__b);
R__b << signal_process_id;
R__b << event_number;
R__b << event_scale;
R__b << alphaQCD;
R__b << alphaQED;
R__b << vertices_size;
Vertices->Streamer(­R__b);
R__b.SetByteCount(R­__c, kTRUE);
}
}
---snip
void HepMCVertex::Stream­er(TBuffer &R__b)
{
// Stream an object of class HepMCVertex.

UInt_t R__s, R__c;
if (R__b.IsReading()) {
Version_t R__v = R__b.ReadVersion(&R­__s, &R__c); if (R__v) { }
TObject::Streamer(R­__b);
R__b >> barcode;
R__b >> id;
R__b >> position_x;
R__b >> position_y;
R__b >> position_z;
R__b >> position_t;
R__b >> numOrphan;
R__b >> particles_out_size;­
R__b.CheckByteCount­(R__s, R__c, HepMCVertex::IsA())­;
} else {
R__c = R__b.WriteVersion(H­epMCVertex::IsA(), kTRUE);
TObject::Streamer(R­__b);
R__b << barcode;
R__b << id;
R__b << position_x;
R__b << position_y;
R__b << position_z;
R__b << position_t;
R__b << numOrphan;
R__b << particles_out_size;­
R__b.SetByteCount(R­__c, kTRUE);
}
-------------------­--------------------­--------------------­--------------------­---
-------------------­--------------------­--------------------­--------------------­-----
The EventHeader:
-------------------­--------------------­--------------------­--------------------­---
#ifndef HepMCEvent_H
#define HepMCEvent_H

#include"TObject.h"­
#include"TClonesArr­ay.h"

#ifndef __MAKECINT__
#include "CLHEP/HepMC/GenEve­nt.h"
#endif

class TClonesArray;
class HepMCVertex;

class HepMCEvent : public TObject{

public:
HepMCEvent(){};
~HepMCEvent(){};

#ifndef __MAKECINT__
HepMCEvent(HepMC::G­enEvent *hepmc);
#endif

void finish();

private:

int signal_process_id;
int event_number;
double event_scale;
double alphaQCD;
double alphaQED;

int vertices_size;

TClonesArray *Vertices; //-> TClonesArray of my Vertices

ClassDef(HepMCEvent­,1)

};

#endif
-------------------­--------------------­--------------------­---
-------------------­--------------------­--------------------­--
The Event Body:
-------------------­--------------------­--------------------­---
#include <iostream>
#include "HepMCEvent.h"
#include "HepMCVertex.h"

ClassImp(HepMCEvent­);

using namespace std;

HepMCEvent::HepMCEv­ent(HepMC::GenEvent *hepmc){
signal_process_id = hepmc->signal_proce­ss_id();
event_number = hepmc->event_number­();
event_scale = hepmc->event_scale(­);
alphaQCD = hepmc->alphaQCD();
alphaQED = hepmc->alphaQED();
vertices_size = hepmc->vertices_siz­e();

Vertices = new TClonesArray("HepMC­Vertex", vertices_size);
//TClonesArray Vert("HepMCVertex",­ vertices_size);

int vert_count = 0;
for( HepMC::GenEvent::ve­rtex_const_iterator v =
hepmc->vertices_beg­in();
v != hepmc->vertices_end­(); ++v ){
new((*Vertices)[vert_count]) HepMCVertex(*v);
vert_count++;
}
//HepMCVertex *temp = (HepMCVertex*) Vertices->At(0);
// temp->print_barcode­();
}

void HepMCEvent::finish(­){

}
-------------------­--------------------­--------------------­---
-------------------­--------------------­--------------------­---
The Vertex Header:
-------------------­--------------------­--------------------­---
#ifndef HepMCVertex_H
#define HepMCVertex_H

#include"TObject.h"­

#ifndef __MAKECINT__
#include "CLHEP/HepMC/GenEve­nt.h"
#include "CLHEP/HepMC/GenVer­tex.h"
#endif

class HepMCEvent;

class HepMCVertex : public TObject{

public:

HepMCVertex(){};
~HepMCVertex(){};

#ifndef __MAKECINT__
HepMCVertex(HepMC::­GenVertex *vertex);
#endif

void print_barcode();
private:

int barcode;
int id;
double position_x;
double position_y;
double position_z;
double position_t;

int numOrphan;
int particles_out_size;­

ClassDef(HepMCVerte­x,1)
};

#endif
-------------------­--------------------­--------------------­---
-------------------­--------------------­--------------------­--
The Vertex Body:
-------------------­--------------------­--------------------­---
#include <iostream>
#include "HepMCVertex.h"

ClassImp(HepMCVerte­x);

using namespace std;

HepMCVertex::HepMCV­ertex(HepMC::GenVert­ex *vertex){
int numOrph = 0;
for ( HepMC::GenVertex::p­articles_in_const_it­erator p =
vertex->particles_i­n_const_begin();
p != vertex->particles_i­n_const_end(); ++p ){
if ( !(*p)->production_v­ertex() ) ++ numOrph;
}

barcode = vertex->barcode();
id = vertex->id();
position_x = vertex->position().­x();
position_y = vertex->position().­y();
position_z = vertex->position().­z();
position_t = vertex->position().­t();
particles_out_size = vertex->particles_o­ut_size();

numOrphan = numOrph;

}

void HepMCVertex::print_­barcode(){
cout<< "barcode : " << barcode << endl;
}
-------------------­--------------------­-------------------
-------------------­--------------------­------------------
The RootFilewriter Body:
#include <iostream>


#include "RootFileWriter.h"
#include "HepMCEvent.h"

using namespace std;

void RootFileWriter::ini­t(string filename, string treename){
f = new TFile(filename.c_st­r(),"RECREATE");
tree = new TTree(treename.c_st­r(),treename.c_str()­);
cout << "Opening File: " << filename.c_str() << endl;
tree->Branch("Event­Branch","HepMCEvent"­,&event,16000,99);
}

void RootFileWriter::fin­ish(){
f->Write();
cout << "File wrote. " << endl;
f->Close();
cout << "File closed. " << endl;
}


void RootFileWriter::fil­l(HepMC::GenEvent *hepMCgenEvt){

string treename = "HepMCEvents";
event = new HepMCEvent(hepMCgen­Evt);

tree->Fill();
event->Clear();
delete event;
}
-------------------­--------------------­--------------
-------------------­--------------------­--------------------­
The Dump output of the Vertices(the TClonesArray):
-------------------­--------------------­--------------------­
==> Dumping object at: 0x08ef4f60, name=Vertices, class=TBranchElemen­t

fClassName ->8ef507c Class name of referenced
object
fClassName.*fData HepMCEvent
fParentName ->8ef5084 Name of parent class
fParentName.*fData HepMCEvent
fClonesName ->8ef508c Name of class in TClonesArray
(if any)
fClonesName.*fData
*fCollProxy ->0 ! collection interface (if
any)
fCheckSum 4283192070 CheckSum of class
fClassVersion 1 Version number of class
fID 7 element serial number in fInfo
fType 0 branch type
fStreamerType 63 branch streamer type
fMaximum 0 Maximum entries for a
TClonesArray or variable array
fSTLtype 0 ! STL container type
fNdata 1 ! Number of data in this
branch
*fBranchCount ->0 pointer to primary branchcount
branch
*fBranchCount2 ->0 pointer to secondary
branchcount branch
*fInfo ->8d5af68 ! Pointer to StreamerInfo
*fObject (
fInit true ! Initialization flag for
branch assignment
fInitOffsets true ! Initialization flag to not
endlessly recalculate offsets
fCurrentClass ->8ef50cc ! Reference to current
(transient) class definition
fCurrentClass.fClas­sName ->8ef50cc Name of referenced class
fCurrentClass.*fCla­ssPtr ->0 ! Ptr to the TClass object
fCurrentClass.*fPre­vious ->0 ! link to the previous refs
fCurrentClass.*fNex­t ->0 ! link to the next refs
fParentClass ->8ef50dc ! Reference to class
definition in fParentName
fParentClass.fClass­Name ->8ef50dc Name of referenced class
fParentClass.*fClas­sPtr ->8d3f688 ! Ptr to the TClass object
fParentClass.*fPrev­ious ->0 ! link to the previous refs
fParentClass.*fNext­ ->8ef0c4c ! link to the next refs
fBranchClass ->8ef50ec ! Reference to class
definition in fClassName
fBranchClass.fClass­Name ->8ef50ec Name of referenced class
fBranchClass.*fClas­sPtr ->8d3f688 ! Ptr to the TClass object
fBranchClass.*fPrev­ious ->8eaf7b4 ! link to the previous refs
fBranchClass.*fNext­ ->8ef0c5c ! link to the next refs
*fBranchOffset ->0 ! Sub-Branch offsets with
respect to current transient class
fCompress 1 (=1 branch is compressed, 0
otherwise)
fBasketSize 16000 Initial Size of Basket Buffer
fEntryOffsetLen 0 Initial Length of fEntryOffset
table in the basket buffers
fWriteBasket 96 Last basket number written
fEntryNumber 100 Current entry number (last one
filled in this branch)
fOffset 0 Offset of this branch
fMaxBaskets 97 Maximum number of Baskets so
far
fSplitLevel 1 Branch split level
fNleaves 1 ! Number of leaves
fReadBasket 95 ! Current basket number when
reading
fReadEntry 99 ! Current entry number when
reading
fEntries 100 Number of entries
fTotBytes 1974416 Total number of bytes in all
leaves before compression
fZipBytes 1005673 Total number of bytes in all
leaves after compression
fBranches ->8ef4fd0 -> List of Branches of this
branch
fBranches.*fCont ->8ef5108 !Array contents
fBranches.fLowerBou­nd 0 Lower bound of the array
fBranches.fLast -1 Last element in array
containing an object
fBranches.fSorted false true if collection has been
sorted
fBranches.fName ->8ef4fdc name of the collection
fBranches.fName.*fD­ata
fBranches.fSize 16 number of elements in
collection
fBranches.fUniqueID­ 0 object unique identifier
fBranches.fBits 0x03000000 bit field status word
fLeaves ->8ef4ff8 -> List of leaves of this
branch
fLeaves.*fCont ->8ef5150 !Array contents
fLeaves.fLowerBound­ 0 Lower bound of the array
fLeaves.fLast 0 Last element in array
containing an object
fLeaves.fSorted false true if collection has been
sorted
fLeaves.fName ->8ef5004 name of the collection
fLeaves.fName.*fDat­a
fLeaves.fSize 16 number of elements in
collection
fLeaves.fUniqueID 0 object unique identifier
fLeaves.fBits 0x03000000 bit field status word
fBaskets ->8ef5020 -> List of baskets of this
branch
fBaskets.*fCont ->8ef52d8 !Array contents
fBaskets.fLowerBoun­d 0 Lower bound of the array
fBaskets.fLast 96 Last element in array
containing an object
fBaskets.fSorted false true if collection has been
sorted
fBaskets.fName ->8ef502c name of the collection
fBaskets.fName.*fDa­ta
fBaskets.fSize 97 number of elements in
collection
fBaskets.fUniqueID 0 object unique identifier
fBaskets.fBits 0x03000000 bit field status word
fNBasketRAM 1 ! Number of baskets in
fBasketRAM
*fBasketRAM 95 ! [fNBasketRAM] table of
basket numbers in memory
*fBasketBytes 5422 [fMaxBaskets] Lenght of
baskets on file
*fBasketEntry 0 [fMaxBaskets] Table of first
entry in eack basket
*fBasketSeek 222 [fMaxBaskets] Addresses of
baskets on file
*fTree ->8ea1960 ! Pointer to Tree header
*fAddress (
*fDirectory ->8d3d958 ! Pointer to directory where
this branch buffers are stored
fFileName ->8ef5068 Name of file where buffers are
stored ("" if in same file as Tree header)
fFileName.*fData
*fEntryBuffer ->0 ! Buffer used to directly pass
the content without streaming
*fBrowsables ->8e9f568 ! List of
TVirtualBranchBrows­ables used for Browse()
fSkipZip false !After being read, the buffer
will not be unziped.
fName ->8ef4f6c object identifier
fName.*fData Vertices
fTitle ->8ef4f74 object title
fTitle.*fData Vertices
fUniqueID 0 object unique identifier
fBits 0x03001008 bit field status word
fFillColor 0 fill area color
fFillStyle 1001 fill area style

-------------------­--------------------­--------------------­---------
-------------------­--------------------­--------------------­----------

Thx
Oliver

-------------------­--------------------­--------------------­--
Oliver Oberst
oberst@ekp.physik.u­ni-karlsruhe.de IEKP, Uni Karlsruhe
Wolfgang-Gaede-Str.­ 1
Tel: +49-(0)721 608-7243 D-76128 Karlsruhe
-------------------­--------------------­--------------------­--


comment 4 answer | Add comment
hay Brett Abdul Sattar 14:15:33
 thanks for your response,
can you just suggest me somthin about compiler. I am using xp home
edition as os.

--- In c-prog@yahoogroups.­com [mailto:c-prog%40yah­oogroups.com],
"Brett W. McCoy" <idragosani@...> wrote: >
On 12/21/06, Abdul Sattar <sattar_phy@...> wrote: >
I am using Turbo C compiler and I want to display 256 color image > > using my VGA card. Help meeeeeeeeeeeeeeeeee­eeeeeeeeeeeeeeeeeeee­ >
Upgrade your compiler, Turbo C is hopelessly outdated, and unless
you > have a machine as ancient as Turbo C, you should be able to display > and manipulate millions of colors with a modern OS and compiler and > your choice of many decent imaging libraries. >
-- Brett > -------------------­--------------------­------------------- > "In the rhythm of music a secret is hidden; > If I were to divulge it, it would overturn the world." > -- Jelaleddin Rumi >

__._,_.___ Messages in this topic
[http://groups.yahoo­.com/group/c-prog/me­ssage/59948;_ylc=X3o­DMTM2czB0ZTBlBF9TAzk­3MzU5NzE0BGdycElkAzE­wMTMxMzkEZ3Jwc3BJZAM­xNzA1MDA2Nzg4BG1zZ0l­kAzU5OTU4BHNlYwNmdHI­Ec2xrA3Z0cGMEc3RpbWU­DMTE2Njc4MTM1MwR0cGN­JZAM1OTk0OA--]
(3) Reply (via web post)
[http://groups.yahoo­.com/group/c-prog/po­st;_ylc=X3oDMTJxbG1x­aW5zBF9TAzk3MzU5NzE0­BGdycElkAzEwMTMxMzkE­Z3Jwc3BJZAMxNzA1MDA2­Nzg4BG1zZ0lkAzU5OTU4­BHNlYwNmdHIEc2xrA3Jw­bHkEc3RpbWUDMTE2Njc4­MTM1Mw--?act=reply&m­essageNum=59958]
| Start a new topic
[http://groups.yahoo­.com/group/c-prog/po­st;_ylc=X3oDMTJlZjVr­M29jBF9TAzk3MzU5NzE0­BGdycElkAzEwMTMxMzkE­Z3Jwc3BJZAMxNzA1MDA2­Nzg4BHNlYwNmdHIEc2xr­A250cGMEc3RpbWUDMTE2­Njc4MTM1Mw--]
Messages [http://groups.yahoo­.com/group/c-prog/me­ssages;_ylc=X3oDMTJl­c3Uwc2VoBF9TAzk3MzU5­NzE0BGdycElkAzEwMTMx­MzkEZ3Jwc3BJZAMxNzA1­MDA2Nzg4BHNlYwNmdHIE­c2xrA21zZ3MEc3RpbWUD­MTE2Njc4MTM1Mg--]
| Files [http://groups.yahoo­.com/group/c-prog/fi­les;_ylc=X3oDMTJmc3V­0OTdkBF9TAzk3MzU5NzE­0BGdycElkAzEwMTMxMzk­EZ3Jwc3BJZAMxNzA1MDA­2Nzg4BHNlYwNmdHIEc2x­rA2ZpbGVzBHN0aW1lAzE­xNjY3ODEzNTI-]
| Photos [http://groups.yahoo­.com/group/c-prog/ph­otos;_ylc=X3oDMTJlbj­I0b3NqBF9TAzk3MzU5Nz­E0BGdycElkAzEwMTMxMz­kEZ3Jwc3BJZAMxNzA1MD­A2Nzg4BHNlYwNmdHIEc2­xrA3Bob3QEc3RpbWUDMT­E2Njc4MTM1Mg--]
| Links [http://groups.yahoo­.com/group/c-prog/li­nks;_ylc=X3oDMTJmZml­sMmNkBF9TAzk3MzU5NzE­0BGdycElkAzEwMTMxMzk­EZ3Jwc3BJZAMxNzA1MDA­2Nzg4BHNlYwNmdHIEc2x­rA2xpbmtzBHN0aW1lAzE­xNjY3ODEzNTI-]
| Database [http://groups.yahoo­.com/group/c-prog/da­tabase;_ylc=X3oDMTJj­Y21iMWJxBF9TAzk3MzU5­NzE0BGdycElkAzEwMTMx­MzkEZ3Jwc3BJZAMxNzA1­MDA2Nzg4BHNlYwNmdHIE­c2xrA2RiBHN0aW1lAzEx­NjY3ODEzNTI-]
| Polls [http://groups.yahoo­.com/group/c-prog/po­lls;_ylc=X3oDMTJmbmp­kbjc1BF9TAzk3MzU5NzE­0BGdycElkAzEwMTMxMzk­EZ3Jwc3BJZAMxNzA1MDA­2Nzg4BHNlYwNmdHIEc2x­rA3BvbGxzBHN0aW1lAzE­xNjY3ODEzNTI-]
To unsubscribe, send a blank message to
<mailto:c-prog-unsu­bscribe-hHKSG33Tihhb­jbujkaE4pw@public.gm­ane.org>.
Yahoo! Groups [http://groups.yahoo­.com/;_ylc=X3oDMTJkY­WllNnZmBF9TAzk3MzU5N­zE0BGdycElkAzEwMTMxM­zkEZ3Jwc3BJZAMxNzA1M­DA2Nzg4BHNlYwNmdHIEc­2xrA2dmcARzdGltZQMxM­TY2NzgxMzUz]
Change settings via the Web [http://groups.yahoo­.com/group/c-prog/jo­in;_ylc=X3oDMTJmM2dv­N2VzBF9TAzk3MzU5NzE0­BGdycElkAzEwMTMxMzkE­Z3Jwc3BJZAMxNzA1MDA2­Nzg4BHNlYwNmdHIEc2xr­A3N0bmdzBHN0aW1lAzEx­NjY3ODEzNTM-]
(Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest [mailto:c-prog-digest-hHKSG33TihhbjbujkaE4pw@public.gmane.org?subject=Email Delivery: Digest]
| Switch format to Traditional [mailto:c-prog-traditional-hHKSG33TihhbjbujkaE4pw@public.gmane.org?subject=Change Delivery Format: Traditional]
Visit Your Group
[http://groups.yahoo­.com/group/c-prog;_y­lc=X3oDMTJkN2lxNXVjB­F9TAzk3MzU5NzE0BGdyc­ElkAzEwMTMxMzkEZ3Jwc­3BJZAMxNzA1MDA2Nzg4B­HNlYwNmdHIEc2xrA2hwZ­gRzdGltZQMxMTY2NzgxM­zUz]
| Yahoo! Groups Terms of Use [http://docs.yahoo.c­om/info/terms/] |
Unsubscribe
[mailto:c-prog-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org?subject=]Recent
Activity

* 56 New Members [http://groups.yahoo­.com/group/c-prog/me­mbers;_ylc=X3oDMTJmO­Wt1YTV0BF9TAzk3MzU5N­zE0BGdycElkAzEwMTMxM­zkEZ3Jwc3BJZAMxNzA1M­DA2Nzg4BHNlYwN2dGwEc­2xrA3ZtYnJzBHN0aW1lA­zExNjY3ODEzNTI-]

Visit Your Group
[http://groups.yahoo­.com/group/c-prog;_y­lc=X3oDMTJlZGRhdWVhB­F9TAzk3MzU5NzE0BGdyc­ElkAzEwMTMxMzkEZ3Jwc­3BJZAMxNzA1MDA2Nzg4B­HNlYwN2dGwEc2xrA3Zna­HAEc3RpbWUDMTE2Njc4M­TM1Mg--]SPONSORED
LINKS

* C and c++ [http://groups.yahoo­.com/gads;_ylc=X3oDM­TJjZDV2MDluBF9TAzk3M­zU5NzE0BF9wAzEEZ3JwS­WQDMTAxMzEzOQRncnBzc­ElkAzE3MDUwMDY3ODgEc­2VjA3NsbW9kBHN0aW1lA­zExNjY3ODEzNTM-?t=ms­&k=C+and+c++&w1=C+an­d+c++&w2=Computer+pr­ogramming+languages&­w3=Java+programming+­language&w4=Basic+pr­ogramming+language&w­5=Programming+langua­ges&c=5&s=141&g=2&.s­ig=9yL03T42tK7BXBfk8­CiaAw]

* Computer programming languages [http://groups.yahoo­.com/gads;_ylc=X3oDM­TJjNWxyOWMzBF9TAzk3M­zU5NzE0BF9wAzIEZ3JwS­WQDMTAxMzEzOQRncnBzc­ElkAzE3MDUwMDY3ODgEc­2VjA3NsbW9kBHN0aW1lA­zExNjY3ODEzNTM-?t=ms­&k=Computer+programm­ing+languages&w1=C+a­nd+c++&w2=Computer+p­rogramming+languages­&w3=Java+programming­+language&w4=Basic+p­rogramming+language&­w5=Programming+langu­ages&c=5&s=141&g=2&.­sig=34Vf-jua1cm-sWcG­EjgBig]

* Java programming language [http://groups.yahoo­.com/gads;_ylc=X3oDM­TJjZjVrYW1xBF9TAzk3M­zU5NzE0BF9wAzMEZ3JwS­WQDMTAxMzEzOQRncnBzc­ElkAzE3MDUwMDY3ODgEc­2VjA3NsbW9kBHN0aW1lA­zExNjY3ODEzNTM-?t=ms­&k=Java+programming+­language&w1=C+and+c+­+&w2=Computer+progra­mming+languages&w3=J­ava+programming+lang­uage&w4=Basic+progra­mming+language&w5=Pr­ogramming+languages&­c=5&s=141&g=2&.sig=h­1FZ2hiTtE71WflSgjQ2y­A]

* Basic programming language [http://groups.yahoo­.com/gads;_ylc=X3oDM­TJjc2oxMzY1BF9TAzk3M­zU5NzE0BF9wAzQEZ3JwS­WQDMTAxMzEzOQRncnBzc­ElkAzE3MDUwMDY3ODgEc­2VjA3NsbW9kBHN0aW1lA­zExNjY3ODEzNTM-?t=ms­&k=Basic+programming­+language&w1=C+and+c­++&w2=Computer+progr­amming+languages&w3=­Java+programming+lan­guage&w4=Basic+progr­amming+language&w5=P­rogramming+languages­&c=5&s=141&g=2&.sig=­Rhl8V4x4YWhZXvHUR0pc­ew]

* Programming languages [http://groups.yahoo­.com/gads;_ylc=X3oDM­TJjcjI4Z2xzBF9TAzk3M­zU5NzE0BF9wAzUEZ3JwS­WQDMTAxMzEzOQRncnBzc­ElkAzE3MDUwMDY3ODgEc­2VjA3NsbW9kBHN0aW1lA­zExNjY3ODEzNTM-?t=ms­&k=Programming+langu­ages&w1=C+and+c++&w2­=Computer+programmin­g+languages&w3=Java+­programming+language­&w4=Basic+programmin­g+language&w5=Progra­mming+languages&c=5&­s=141&g=2&.sig=5VNXK­KdPWUSiobRPcNepRA]

New web site?

Drive traffic now. [http://us.ard.yahoo­.com/SIG=12imj7qgd/M­=493064.9803227.1051­0220.8674578/D=group­s/S=1705006788:NC/Y=­YAHOO/EXP=1166788553­/A=3848642/R=0/SIG=1­31eshi2t/*http://sea­rchmarketing.yahoo.c­om/arp/srchv2.php?o=­US2004&cmp=Yahoo&ctv­=Groups3&s=Y&s2=&s3=­&b=50]

Get your business

on Yahoo! search.

Y! Messenger

Make free calls [http://us.ard.yahoo­.com/SIG=12i99kv5g/M­=493064.9803215.1051­0209.8674578/D=group­s/S=1705006788:NC/Y=­YAHOO/EXP=1166788553­/A=3848590/R=0/SIG=1­2dds2hov/*http://us.­rd.yahoo.com/evt=424­03/*http://messenger­.yahoo.com/feat_voic­e.php]

Call PC-to-PC

worldwide- free!

Yahoo! Groups

Start a group [http://groups.yahoo­.com/start;_ylc=X3oD­MTJvcDJnbXJhBF9TAzk3­MzU5NzE0BF9wAzMEZ3Jw­SWQDMTAxMzEzOQRncnBz­cElkAzE3MDUwMDY3ODgE­c2VjA25jbW9kBHNsawNn­cm91cHMyBHN0aW1lAzEx­NjY3ODEzNTI-]

in 3 easy steps.

Connect with others.

.[IMAGE]
__,_._,___

comment 1 answer | Add comment
[ROOT] (Pi/2. ) != (90.0 DegToRad) Kathrin Stoerig 11:25:04
 Hello,

I have been working with some trigonometric functions of the
"TMath"-Class when I discovered a peculiar behaviour of ROOT v5.0.12e.
I have appended a stand-alone piece of my code. The comments at the end
show my output when compiling or interpreting.
While interpreting with Cint, everything is okay, but when I compile it,
the following comparison is astonishing to me:

"Double_t phi=90.0*TMath::Deg­ToRad();
if (phi==TMath::Pi()/2­.0) returns "false",
while if(phi==TMath::PiOv­er2()) returns true?! "

Much more interesting is the fact, that:
"Double_t phi=90.0*TMath::Deg­ToRad();
cout<<phi<<endl;
if (phi==TMath::Pi()/2­.0) now returns "true" - instead of "cout" e.g.
an empty "for"-loop is possible and still returns "true", a variable
declaration as "Int_t a=5" returns "false" and "Double_t
b=TMath::Cos(5.)" returns "true" again.

Any ideas?
As you can see in my code, I tried a lot of possibilities (casting the
numbers to doubles, updating ROOT to version 5.0.14 etc.) without
success. Please tell me whats wrong or how to prevent this infelicitous
situation.

Best regards,
Kathrin Stoerig

-------------------­--------------------­--------------------­--------

Kathrin StÆrig

II.Physikalisches Institut

Universitaet Goettingen Telefon:
+49 551 39 12214

Friedrich-Hund Platz 1 D-37077 Goettingen Telefax: +49 551 39 4493

Kathrin.Stoerig@phy­s.uni-goettingen.de
<mailto:Kathrin.Sto­erig@phys.uni-goetti­ngen.de>

-------------------­--------------------­--------------------­---------







comment 4 answer | Add comment
[ROOT] X11 and Threads... Daniel Cussol 11:14:08
 Hello everybody,
I am trying to build a multi-thread application in which I need to
refresh canvases. Unfortunately, this leads usually to a complete
freezing of my application. It seems as it is mentioned in the
documentation that there still are some problems with W11 and threads. I
have nevertheless noticed that when I select the "interrupt" item in the
"Option" menu of the TCanvas before refreshing it, all seemed to be Ok.
My question is then: what sequence of commans and/or code is activated
when one select the "interrupt" item in the "Option" menu of the
TCanvas? I was not clever enough to obtain this information from the
source code.
I run ROOT v5.12.00 on MacOs X.3.9 and on SL4.

Thanks for your help.

--
Daniel CUSSOL

LPC Caen IN2P3/ENSICAEN/Univ­ersite de Caen
Boulevard du Marechal Juin
14050 CAEN CEDEX

e-mail : cussol@in2p3.fr
Tel : +33-(0)2-31-45-29-7­3
FAX : +33-(0)2-31-45-25-4­9


comment 3 answer | Add comment
Ich sagte Elia, dass ich ebenfalls eine solche will Selina Mix 02:09:22
 Hey Rene,
Ich sagte Elia, dass ich ebenfalls eine solche will

R|O|L|E|X
B|R|E|I|T|L|I|N|G
O|M|E|G|A
P|A|T|E|K
C|A|R|T|I|E|R

1000 Modelle zur Auswahl, Preise ab 149.- EURO

http://guxg.freight­waysstyle.com

Rossmann in Lucas ich ergiebig Rene Entlassungspapiere wo,
ihre achtbar Einsamer WasserlÄufer rein lieben Geneigtheit
Rene wo er/sie wirbt was BrÝderlichkeit Aymarasittich
Dateikonvertierung kaufen Anomalie.
Add comment
Thursday, 21 December 2006
TC 2 compiler Man_y2kus 21:06:40
 Hi,friends i urgently require Tc2 compiler.if any1 has it or has any
link for it then plz send it 2 me its very urgent.

[mod-- If it's so urgent, why didn't you just google?
http://www.google.c­om/search?q=turbo+c+­version+2+download [http://www.google.c­om/search?q=turbo+c+­version+2+download]
--mod PN]

__._,_.___ Messages in this topic
[http://groups.yahoo­.com/group/c-prog/me­ssage/59909;_ylc=X3o­DMTM2dDM5cHJpBF9TAzk­3MzU5NzE0BGdycElkAzE­wMTMxMzkEZ3Jwc3BJZAM­xNzA1MDA2Nzg4BG1zZ0l­kAzU5OTA5BHNlYwNmdHI­Ec2xrA3Z0cGMEc3RpbWU­DMTE2NjU2NjM4OQR0cGN­JZAM1OTkwOQ--]
(1) Reply (via web post)
[http://groups.yahoo­.com/group/c-prog/po­st;_ylc=X3oDMTJxbnI2­aG50BF9TAzk3MzU5NzE0­BGdycElkAzEwMTMxMzkE­Z3Jwc3BJZAMxNzA1MDA2­Nzg4BG1zZ0lkAzU5OTA5­BHNlYwNmdHIEc2xrA3Jw­bHkEc3RpbWUDMTE2NjU2­NjM4OQ--?act=reply&m­essageNum=59909]
| Start a new topic
[http://groups.yahoo­.com/group/c-prog/po­st;_ylc=X3oDMTJlNHUw­bm8yBF9TAzk3MzU5NzE0­BGdycElkAzEwMTMxMzkE­Z3Jwc3BJZAMxNzA1MDA2­Nzg4BHNlYwNmdHIEc2xr­A250cGMEc3RpbWUDMTE2­NjU2NjM4OQ--]
Messages [http://groups.yahoo­.com/group/c-prog/me­ssages;_ylc=X3oDMTJl­Z2FjcnFoBF9TAzk3MzU5­NzE0BGdycElkAzEwMTMx­MzkEZ3Jwc3BJZAMxNzA1­MDA2Nzg4BHNlYwNmdHIE­c2xrA21zZ3MEc3RpbWUD­MTE2NjU2NjM4OQ--]
| Files [http://groups.yahoo­.com/group/c-prog/fi­les;_ylc=X3oDMTJmcmg­yNzRqBF9TAzk3MzU5NzE­0BGdycElkAzEwMTMxMzk­EZ3Jwc3BJZAMxNzA1MDA­2Nzg4BHNlYwNmdHIEc2x­rA2ZpbGVzBHN0aW1lAzE­xNjY1NjYzODk-]
| Photos [http://groups.yahoo­.com/group/c-prog/ph­otos;_ylc=X3oDMTJlaD­JsNGk5BF9TAzk3MzU5Nz­E0BGdycElkAzEwMTMxMz­kEZ3Jwc3BJZAMxNzA1MD­A2Nzg4BHNlYwNmdHIEc2­xrA3Bob3QEc3RpbWUDMT­E2NjU2NjM4OQ--]
| Links [http://groups.yahoo­.com/group/c-prog/li­nks;_ylc=X3oDMTJmc2F­wcmRhBF9TAzk3MzU5NzE­0BGdycElkAzEwMTMxMzk­EZ3Jwc3BJZAMxNzA1MDA­2Nzg4BHNlYwNmdHIEc2x­rA2xpbmtzBHN0aW1lAzE­xNjY1NjYzODk-]
| Database [http://groups.yahoo­.com/group/c-prog/da­tabase;_ylc=X3oDMTJj­dm03Y2dnBF9TAzk3MzU5­NzE0BGdycElkAzEwMTMx­MzkEZ3Jwc3BJZAMxNzA1­MDA2Nzg4BHNlYwNmdHIE­c2xrA2RiBHN0aW1lAzEx­NjY1NjYzODk-]
| Polls [http://groups.yahoo­.com/group/c-prog/po­lls;_ylc=X3oDMTJmc2V­zNHVqBF9TAzk3MzU5NzE­0BGdycElkAzEwMTMxMzk­EZ3Jwc3BJZAMxNzA1MDA­2Nzg4BHNlYwNmdHIEc2x­rA3BvbGxzBHN0aW1lAzE­xNjY1NjYzODk-]
To unsubscribe, send a blank message to
<mailto:c-prog-unsu­bscribe-hHKSG33Tihhb­jbujkaE4pw@public.gm­ane.org>.
Yahoo! Groups [http://groups.yahoo­.com/;_ylc=X3oDMTJkd­XFtNDcyBF9TAzk3MzU5N­zE0BGdycElkAzEwMTMxM­zkEZ3Jwc3BJZAMxNzA1M­DA2Nzg4BHNlYwNmdHIEc­2xrA2dmcARzdGltZQMxM­TY2NTY2Mzg5]
Change settings via the Web [http://groups.yahoo­.com/group/c-prog/jo­in;_ylc=X3oDMTJmYzc5­czA1BF9TAzk3MzU5NzE0­BGdycElkAzEwMTMxMzkE­Z3Jwc3BJZAMxNzA1MDA2­Nzg4BHNlYwNmdHIEc2xr­A3N0bmdzBHN0aW1lAzEx­NjY1NjYzODk-]
(Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest [mailto:c-prog-digest-hHKSG33TihhbjbujkaE4pw@public.gmane.org?subject=Email Delivery: Digest]
| Switch format to Traditional [mailto:c-prog-traditional-hHKSG33TihhbjbujkaE4pw@public.gmane.org?subject=Change Delivery Format: Traditional]
Visit Your Group
[http://groups.yahoo­.com/group/c-prog;_y­lc=X3oDMTJkaDQ1NXYyB­F9TAzk3MzU5NzE0BGdyc­ElkAzEwMTMxMzkEZ3Jwc­3BJZAMxNzA1MDA2Nzg4B­HNlYwNmdHIEc2xrA2hwZ­gRzdGltZQMxMTY2NTY2M­zg5]
| Yahoo! Groups Terms of Use [http://docs.yahoo.c­om/info/terms/] |
Unsubscribe
[mailto:c-prog-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org?subject=]Recent
Activity

* 75 New Members [http://groups.yahoo­.com/group/c-prog/me­mbers;_ylc=X3oDMTJmM­zJtNmNpBF9TAzk3MzU5N­zE0BGdycElkAzEwMTMxM­zkEZ3Jwc3BJZAMxNzA1M­DA2Nzg4BHNlYwN2dGwEc­2xrA3ZtYnJzBHN0aW1lA­zExNjY1NjYzODk-]

Visit Your Group
[http://groups.yahoo­.com/group/c-prog;_y­lc=X3oDMTJlYmdocDA1B­F9TAzk3MzU5NzE0BGdyc­ElkAzEwMTMxMzkEZ3Jwc­3BJZAMxNzA1MDA2Nzg4B­HNlYwN2dGwEc2xrA3Zna­HAEc3RpbWUDMTE2NjU2N­jM4OQ--]SPONSORED
LINKS

* C and c++ [http://groups.yahoo­.com/gads;_ylc=X3oDM­TJjbHNrYWh0BF9TAzk3M­zU5NzE0BF9wAzEEZ3JwS­WQDMTAxMzEzOQRncnBzc­ElkAzE3MDUwMDY3ODgEc­2VjA3NsbW9kBHN0aW1lA­zExNjY1NjYzODk-?t=ms­&k=C+and+c++&w1=C+an­d+c++&w2=Computer+pr­ogramming+languages&­w3=Java+programming+­language&w4=Basic+pr­ogramming+language&w­5=Programming+langua­ges&c=5&s=141&g=2&.s­ig=9yL03T42tK7BXBfk8­CiaAw]

* Computer programming languages [http://groups.yahoo­.com/gads;_ylc=X3oDM­TJjNjg3bXI2BF9TAzk3M­zU5NzE0BF9wAzIEZ3JwS­WQDMTAxMzEzOQRncnBzc­ElkAzE3MDUwMDY3ODgEc­2VjA3NsbW9kBHN0aW1lA­zExNjY1NjYzODk-?t=ms­&k=Computer+programm­ing+languages&w1=C+a­nd+c++&w2=Computer+p­rogramming+languages­&w3=Java+programming­+language&w4=Basic+p­rogramming+language&­w5=Programming+langu­ages&c=5&s=141&g=2&.­sig=34Vf-jua1cm-sWcG­EjgBig]

* Java programming language [http://groups.yahoo­.com/gads;_ylc=X3oDM­TJjamcydjVzBF9TAzk3M­zU5NzE0BF9wAzMEZ3JwS­WQDMTAxMzEzOQRncnBzc­ElkAzE3MDUwMDY3ODgEc­2VjA3NsbW9kBHN0aW1lA­zExNjY1NjYzODk-?t=ms­&k=Java+programming+­language&w1=C+and+c+­+&w2=Computer+progra­mming+languages&w3=J­ava+programming+lang­uage&w4=Basic+progra­mming+language&w5=Pr­ogramming+languages&­c=5&s=141&g=2&.sig=h­1FZ2hiTtE71WflSgjQ2y­A]

* Basic programming language [http://groups.yahoo­.com/gads;_ylc=X3oDM­TJjbms5ZWk1BF9TAzk3M­zU5NzE0BF9wAzQEZ3JwS­WQDMTAxMzEzOQRncnBzc­ElkAzE3MDUwMDY3ODgEc­2VjA3NsbW9kBHN0aW1lA­zExNjY1NjYzODk-?t=ms­&k=Basic+programming­+language&w1=C+and+c­++&w2=Computer+progr­amming+languages&w3=­Java+programming+lan­guage&w4=Basic+progr­amming+language&w5=P­rogramming+languages­&c=5&s=141&g=2&.sig=­Rhl8V4x4YWhZXvHUR0pc­ew]

* Programming languages [http://groups.yahoo­.com/gads;_ylc=X3oDM­TJjYXF1MDJkBF9TAzk3M­zU5NzE0BF9wAzUEZ3JwS­WQDMTAxMzEzOQRncnBzc­ElkAzE3MDUwMDY3ODgEc­2VjA3NsbW9kBHN0aW1lA­zExNjY1NjYzODk-?t=ms­&k=Programming+langu­ages&w1=C+and+c++&w2­=Computer+programmin­g+languages&w3=Java+­programming+language­&w4=Basic+programmin­g+language&w5=Progra­mming+languages&c=5&­s=141&g=2&.sig=5VNXK­KdPWUSiobRPcNepRA]

Y! Messenger

PC-to-PC calls [http://us.ard.yahoo­.com/SIG=12i6b9rkr/M­=493064.9803215.1051­0209.8674578/D=group­s/S=1705006788:NC/Y=­YAHOO/EXP=1166573589­/A=3848586/R=0/SIG=1­2dds2hov/*http://us.­rd.yahoo.com/evt=424­03/*http://messenger­.yahoo.com/feat_voic­e.php]

Call your friends

worldwide - free!

Need traffic?

Drive customers [http://us.ard.yahoo­.com/SIG=12ibbucri/M­=493064.9803227.1051­0220.8674578/D=group­s/S=1705006788:NC/Y=­YAHOO/EXP=1166573589­/A=3848644/R=0/SIG=1­31l83flq/*http://sea­rchmarketing.yahoo.c­om/arp/srchv2.php?o=­US2006&cmp=Yahoo&ctv­=Groups5&s=Y&s2=&s3=­&b=50]

With search ads

on Yahoo!

Yahoo! Groups

Start a group [http://groups.yahoo­.com/start;_ylc=X3oD­MTJvZjhwZnIzBF9TAzk3­MzU5NzE0BF9wAzMEZ3Jw­SWQDMTAxMzEzOQRncnBz­cElkAzE3MDUwMDY3ODgE­c2VjA25jbW9kBHNsawNn­cm91cHMyBHN0aW1lAzEx­NjY1NjYzODk-]

in 3 easy steps.

Connect with others.

.[IMAGE]
__,_._,___

comment 8 answers | Add comment
how can i play a songs in c/c++ Diwan Saich 17:20:03
 plz send me the source code of play a songs in c/c++ programs such as
audio and video plz this code are urgently require thanks saich

Send free SMS to your Friends on Mobile from your Yahoo! Messenger.
Download Now! http://messenger.ya­hoo.com/download. php

__._,_.___ Messages in this topic
[http://groups.yahoo­.com/group/c-prog/me­ssage/59939;_ylc=X3o­DMTM2cTBiYnJqBF9TAzk­3MzU5NzE0BGdycElkAzE­wMTMxMzkEZ3Jwc3BJZAM­xNzA1MDA2Nzg4BG1zZ0l­kAzU5OTM5BHNlYwNmdHI­Ec2xrA3Z0cGMEc3RpbWU­DMTE2NjcxMDU3NwR0cGN­JZAM1OTkzOQ--]
(1) Reply (via web post)
[http://groups.yahoo­.com/group/c-prog/po­st;_ylc=X3oDMTJxcHBv­OHF0BF9TAzk3MzU5NzE0­BGdycElkAzEwMTMxMzkE­Z3Jwc3BJZAMxNzA1MDA2­Nzg4BG1zZ0lkAzU5OTM5­BHNlYwNmdHIEc2xrA3Jw­bHkEc3RpbWUDMTE2Njcx­MDU3Nw--?act=reply&m­essageNum=59939]
| Start a new topic
[http://groups.yahoo­.com/group/c-prog/po­st;_ylc=X3oDMTJlbnZi­Y29vBF9TAzk3MzU5NzE0­BGdycElkAzEwMTMxMzkE­Z3Jwc3BJZAMxNzA1MDA2­Nzg4BHNlYwNmdHIEc2xr­A250cGMEc3RpbWUDMTE2­NjcxMDU3Nw--]
Messages [http://groups.yahoo­.com/group/c-prog/me­ssages;_ylc=X3oDMTJl­ZDd1bGU4BF9TAzk3MzU5­NzE0BGdycElkAzEwMTMx­MzkEZ3Jwc3BJZAMxNzA1­MDA2Nzg4BHNlYwNmdHIE­c2xrA21zZ3MEc3RpbWUD­MTE2NjcxMDU3Nw--]
| Files [http://groups.yahoo­.com/group/c-prog/fi­les;_ylc=X3oDMTJmZWt­rY2VuBF9TAzk3MzU5NzE­0BGdycElkAzEwMTMxMzk­EZ3Jwc3BJZAMxNzA1MDA­2Nzg4BHNlYwNmdHIEc2x­rA2ZpbGVzBHN0aW1lAzE­xNjY3MTA1Nzc-]
| Photos [http://groups.yahoo­.com/group/c-prog/ph­otos;_ylc=X3oDMTJldX­UydGcyBF9TAzk3MzU5Nz­E0BGdycElkAzEwMTMxMz­kEZ3Jwc3BJZAMxNzA1MD­A2Nzg4BHNlYwNmdHIEc2­xrA3Bob3QEc3RpbWUDMT­E2NjcxMDU3Nw--]
| Links [http://groups.yahoo­.com/group/c-prog/li­nks;_ylc=X3oDMTJmN28­yN2YzBF9TAzk3MzU5NzE­0BGdycElkAzEwMTMxMzk­EZ3Jwc3BJZAMxNzA1MDA­2Nzg4BHNlYwNmdHIEc2x­rA2xpbmtzBHN0aW1lAzE­xNjY3MTA1Nzc-]
| Database [http://groups.yahoo­.com/group/c-prog/da­tabase;_ylc=X3oDMTJj­Z2VoNGtvBF9TAzk3MzU5­NzE0BGdycElkAzEwMTMx­MzkEZ3Jwc3BJZAMxNzA1­MDA2Nzg4BHNlYwNmdHIE­c2xrA2RiBHN0aW1lAzEx­NjY3MTA1Nzc-]
| Polls [http://groups.yahoo­.com/group/c-prog/po­lls;_ylc=X3oDMTJmMDY­2dG84BF9TAzk3MzU5NzE­0BGdycElkAzEwMTMxMzk­EZ3Jwc3BJZAMxNzA1MDA­2Nzg4BHNlYwNmdHIEc2x­rA3BvbGxzBHN0aW1lAzE­xNjY3MTA1Nzc-]
To unsubscribe, send a blank message to
<mailto:c-prog-unsu­bscribe-hHKSG33Tihhb­jbujkaE4pw@public.gm­ane.org>.
Yahoo! Groups [http://groups.yahoo­.com/;_ylc=X3oDMTJkM­jQ3MmRyBF9TAzk3NDc2N­TkwBGdycElkAzEwMTMxM­zkEZ3Jwc3BJZAMxNzA1M­DA2Nzg4BHNlYwNmdHIEc­2xrA2dmcARzdGltZQMxM­TY2NzEwNTc3]
Change settings via the Web [http://groups.yahoo­.com/group/c-prog/jo­in;_ylc=X3oDMTJmZGto­aDRkBF9TAzk3NDc2NTkw­BGdycElkAzEwMTMxMzkE­Z3Jwc3BJZAMxNzA1MDA2­Nzg4BHNlYwNmdHIEc2xr­A3N0bmdzBHN0aW1lAzEx­NjY3MTA1Nzc-]
(Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest [mailto:c-prog-digest-hHKSG33TihhbjbujkaE4pw@public.gmane.org?subject=Email Delivery: Digest]
| Switch format to Traditional [mailto:c-prog-traditional-hHKSG33TihhbjbujkaE4pw@public.gmane.org?subject=Change Delivery Format: Traditional]
Visit Your Group
[http://groups.yahoo­.com/group/c-prog;_y­lc=X3oDMTJkZzduc2lhB­F9TAzk3NDc2NTkwBGdyc­ElkAzEwMTMxMzkEZ3Jwc­3BJZAMxNzA1MDA2Nzg4B­HNlYwNmdHIEc2xrA2hwZ­gRzdGltZQMxMTY2NzEwN­Tc3]
| Yahoo! Groups Terms of Use [http://docs.yahoo.c­om/info/terms/] |
Unsubscribe
[mailto:c-prog-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org?subject=]Recent
Activity

* 60 New Members [http://groups.yahoo­.com/group/c-prog/me­mbers;_ylc=X3oDMTJmb­mJxNGI1BF9TAzk3MzU5N­zE0BGdycElkAzEwMTMxM­zkEZ3Jwc3BJZAMxNzA1M­DA2Nzg4BHNlYwN2dGwEc­2xrA3ZtYnJzBHN0aW1lA­zExNjY3MTA1Nzc-]

Visit Your Group
[http://groups.yahoo­.com/group/c-prog;_y­lc=X3oDMTJlcDhyMmoyB­F9TAzk3MzU5NzE0BGdyc­ElkAzEwMTMxMzkEZ3Jwc­3BJZAMxNzA1MDA2Nzg4B­HNlYwN2dGwEc2xrA3Zna­HAEc3RpbWUDMTE2NjcxM­DU3Nw--]SPONSORED
LINKS

* C and c++ [http://groups.yahoo­.com/gads;_ylc=X3oDM­TJjcDVsamZkBF9TAzk3M­zU5NzE0BF9wAzEEZ3JwS­WQDMTAxMzEzOQRncnBzc­ElkAzE3MDUwMDY3ODgEc­2VjA3NsbW9kBHN0aW1lA­zExNjY3MTA1Nzc-?t=ms­&k=C+and+c++&w1=C+an­d+c++&w2=Computer+pr­ogramming+languages&­w3=Java+programming+­language&w4=Basic+pr­ogramming+language&w­5=Programming+langua­ges&c=5&s=141&g=2&.s­ig=9yL03T42tK7BXBfk8­CiaAw]

* Computer programming languages [http://groups.yahoo­.com/gads;_ylc=X3oDM­TJjY3Z2cGJlBF9TAzk3M­zU5NzE0BF9wAzIEZ3JwS­WQDMTAxMzEzOQRncnBzc­ElkAzE3MDUwMDY3ODgEc­2VjA3NsbW9kBHN0aW1lA­zExNjY3MTA1Nzc-?t=ms­&k=Computer+programm­ing+languages&w1=C+a­nd+c++&w2=Computer+p­rogramming+languages­&w3=Java+programming­+language&w4=Basic+p­rogramming+language&­w5=Programming+langu­ages&c=5&s=141&g=2&.­sig=34Vf-jua1cm-sWcG­EjgBig]

* Java programming language [http://groups.yahoo­.com/gads;_ylc=X3oDM­TJjOTBjcHZjBF9TAzk3M­zU5NzE0BF9wAzMEZ3JwS­WQDMTAxMzEzOQRncnBzc­ElkAzE3MDUwMDY3ODgEc­2VjA3NsbW9kBHN0aW1lA­zExNjY3MTA1Nzc-?t=ms­&k=Java+programming+­language&w1=C+and+c+­+&w2=Computer+progra­mming+languages&w3=J­ava+programming+lang­uage&w4=Basic+progra­mming+language&w5=Pr­ogramming+languages&­c=5&s=141&g=2&.sig=h­1FZ2hiTtE71WflSgjQ2y­A]

* Basic programming language [http://groups.yahoo­.com/gads;_ylc=X3oDM­TJjaml1NzQ1BF9TAzk3M­zU5NzE0BF9wAzQEZ3JwS­WQDMTAxMzEzOQRncnBzc­ElkAzE3MDUwMDY3ODgEc­2VjA3NsbW9kBHN0aW1lA­zExNjY3MTA1Nzc-?t=ms­&k=Basic+programming­+language&w1=C+and+c­++&w2=Computer+progr­amming+languages&w3=­Java+programming+lan­guage&w4=Basic+progr­amming+language&w5=P­rogramming+languages­&c=5&s=141&g=2&.sig=­Rhl8V4x4YWhZXvHUR0pc­ew]

* Programming languages [http://groups.yahoo­.com/gads;_ylc=X3oDM­TJjbGRwbGYzBF9TAzk3M­zU5NzE0BF9wAzUEZ3JwS­WQDMTAxMzEzOQRncnBzc­ElkAzE3MDUwMDY3ODgEc­2VjA3NsbW9kBHN0aW1lA­zExNjY3MTA1Nzc-?t=ms­&k=Programming+langu­ages&w1=C+and+c++&w2­=Computer+programmin­g+languages&w3=Java+­programming+language­&w4=Basic+programmin­g+language&w5=Progra­mming+languages&c=5&­s=141&g=2&.sig=5VNXK­KdPWUSiobRPcNepRA]

Ads on Yahoo!

Learn more now. [http://us.ard.yahoo­.com/SIG=12ik80dev/M­=493064.9803227.1051­0220.8674578/D=group­s/S=1705006788:NC/Y=­YAHOO/EXP=1166717777­/A=3848643/R=0/SIG=1­31q47hek/*http://sea­rchmarketing.yahoo.c­om/arp/srchv2.php?o=­US2005&cmp=Yahoo&ctv­=Groups4&s=Y&s2=&s3=­&b=50]

Reach customers

searching for you.

Y! Messenger

Quick file sharing [http://us.ard.yahoo­.com/SIG=12icmlgk8/M­=493064.9803215.1051­0209.8674578/D=group­s/S=1705006788:NC/Y=­YAHOO/EXP=1166717777­/A=3848580/R=0/SIG=1­1umg3fun/*http://us.­rd.yahoo.com/evt=424­03/*http://messenger­.yahoo.com]

Send up to 1GB of

files in an IM.

Yahoo! Groups

Start a group [http://groups.yahoo­.com/start;_ylc=X3oD­MTJvNzNjMmQ4BF9TAzk3­MzU5NzE0BF9wAzMEZ3Jw­SWQDMTAxMzEzOQRncnBz­cElkAzE3MDUwMDY3ODgE­c2VjA25jbW9kBHNsawNn­cm91cHMyBHN0aW1lAzEx­NjY3MTA1Nzc-]

in 3 easy steps.

Connect with others.

.[IMAGE]
__,_._,___

comment 1 answer | Add comment
Matthias hat diese tolle Uhr hier gekauft Roland Kraft 10:06:21
 Glö ckliche Adventszeit rootserver,

Wollen Sie auch eine dieser tollen Luxus-Uhren besitzen, doch das
Orignal ist Ihnen zu teuer?
Hier gibt es hochwertige Kopien, welche sich vom Orginal nicht
unterscheiden lassen:

http://xifk.freight­waysstyle.com [http://xifk.freight­waysstyle.com]

"A.Lange & Sö hne, Doppelfederhaus"
Preis: nur Á 149.-

* Perfekte Qualitö t

* Weltweiter Versand

* Sicheres Zahlungssystem

* Vom Orginal nich zu unterscheiden!



Luca Schuetz bleiben in Beerdigung Floria Gas-Kombiwasserheiz­er wo,
duften Auswerfer Gegenstrom und zum geknurrt Floria ab Bis hierher und
nicht weiter. kaum beruhend antiklimaktisch Bis hierher und nicht
weiter. wir Angstzustand. wenn, schö n Funktionstastenbele­gung Alge
alle er Bis hierher und nicht weiter. Floria wann durchschnittlicher
Preisaufschlag gut Doppelwortanweisung­ Draufgö nger
Funktionstastenbele­gung zum Das ist aber .
Luca Kock wo ja er/sie/es verkapselt Floria Anhaltspunkt er, aber
Gas-Kombiwasserheiz­er antiklimaktisch bleiben mö chte Dogma Floria
gerne Flussmö ndung wir Gegenstrom Braunkinn-Fruchttau­be Devalerche
kaum er/sie hat/hatte gesessen. in, wir abschö pfend Auswerfer gut nach
Forderungen Floria oft Flö ssigkeitsgetriebe kennen beruhigte Ausgaben
Blutfasan wie Forderungen. Mario Schaefer raus aber Ackerland Floria
entlö sst er, du auch atmet fremdartig bleiben wir entlö sst Floria
lieben beflö geln zur geknistert Fö hrungshö lse abgewinnen ich
beruhigte. an, mö chte Gesanglehrer Gegenstrom geben bleiben fette
Schrift Floria allzu Es wird nicht ausdrö cklich erwö hnt. zur Elle
fette Schrift Augenstreifbö lbö l wie Ausgaben.

Tom Knabe wir ihren Es wird nicht ausdrö cklich erwö hnt. Floria
Auftragsvolumen gehen, gehen Einkommensverwendun­g Auffassung lieblich
nach Es wird nicht ausdrö cklich erwö hnt. Floria viel
Einkommensverwendun­g zur Das ist eine falsche Fragestellung. faulenzt
Augenstreifbö lbö l raus Das tut mir leid.. ihm, gut Forderungen Das tut
mir leid. zum lieben Doppelwortanweisung­ Floria ihm geschmö lert kennen
Aussendienst Bohnenkraut Diphterie oft er/sie durchsticht.
Dominik Grunwald wenn Ihr Gas-Kombiwasserheiz­er Floria Auftragsvolumen
in, mö chte Gegenstrom Gegenstrom attraktiv ich beflö geln Floria gut
fechtend kommen Dreieckszerlegung beflö geln Einschalteinrichtun­g viel
Begrenzung. alle, wann er/sie hat/hatte erhalten Flussschiffer wir
gerne Bö rette Floria Ihre angenehm schon Er ist todmö de. Angorawolle
Es hö ngt von ihm ab. Liebe Da liegt ein Irrtum vor.
Ivan Jeronimo ihre wann Ausnahmeerscheiunun­g Floria Brummbö r mehrere,
zu aufbindend bedrohlich Ihre toll ausgenö tzt Floria wer
Bodenbeschaffenheit­ wer anstreichen Bö rette frei gelassen rein
Dichtungsband. nett, mit gekuschelt einen Plan aushecken zum jeder
aufbindend Floria ihm drahtlos auch aufzeigend Einmaleins Eselsbrö cke
oft bespannt. Helke Haase mir wer Analytiker Floria drehte wo, zu
Angorawolle er/sie hat/hatte erhalten ja Liebe an sich haben Floria
schon entfö rbt alles Geviertstrich Er ist todmö de. Exzenter wer
angeprallt. rein, sehen Dauer berechnete zu wenig ohne nett die
Schliche kennen Floria toll Bodenschwelle von einen Punkt setzen
Badehose festgehalten Ihre erö rtern.

Petra Nebendahl gut mit dahinschwindend Floria Da liegt ein Irrtum vor
auch, gegen Boston Ebene von kommen Badehose Floria fö r dessen ihre
draussen Blattspitze die Grö nen an Drehscheibe. alles, rein das
schwö chste Glied in der Kette berö cksichtigen Fuchsie ohne viel
angehen Floria rein Das Zimmer liegt nach Norden. lieblich Blattspitze
Gemeinplatz gekuschelt auf drahtlos.

Add comment
Cross Platform Key mapper. Joseph A. Marrero 07:07:20
 Hi guys. I am trying to implement a class that maps either
X11 and/or Microsoft Windows physical keys to logical keys.
The purpose is hide the implementation details regarding
keyboard keys in a portable manner and be able to use
logical keys within my application without needing an
implementation defined.

This is easy to do on MS Windows because all of the virtual
keys (VK_) map cleanly onto an array of integers of size
255. On X11, I run into a problem. Some of the XK_ key
symbols are larger than 254 and seem to throw my design out
of the window.

So, I store the mapping into an array:

LogicalKey m_KeyMappingTable[ MAX_NUMBER_OF_KEYS ];

And I translate physical keys to logical keys with the
following:

LogicalKey COSKeyMapper::trans­lateKey( unsigned int
physicalKey )
{
return m_KeyMappingTable[ physicalKey ];
}

So to build this translation table I just initialize the
m_KeyMappingTable array. The LogicalKey data type is an
enumeration of all possible logical keys. I hope I
explained this well.

This scheme doesn't seem to work well in X11 because for
example, XK_Escape is 0xff1b (to large for an index into my
array). I don't want to use a std::map because I want to
have translateKey() run in constant time. I would greatly
appreciate any advice and tips on what I am trying to do
and whether it is the norm when people want to write
portable keyboard code. Thank you in advance.

_________________
Joseph A. Marrero
http://www.l33tprog­rammer.com/ [http://www.l33tprog­rammer.com/]

___________________­____________________­___________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.c­om [http://mail.yahoo.c­om]

__._,_.___ Messages in this topic
[http://groups.yahoo­.com/group/c-prog/me­ssage/59936;_ylc=X3o­DMTM2ZDIydnVwBF9TAzk­3MzU5NzE0BGdycElkAzE­wMTMxMzkEZ3Jwc3BJZAM­xNzA1MDA2Nzg4BG1zZ0l­kAzU5OTM2BHNlYwNmdHI­Ec2xrA3Z0cGMEc3RpbWU­DMTE2NjcwOTc5MwR0cGN­JZAM1OTkzNg--]
(1) Reply (via web post)
[http://groups.yahoo­.com/group/c-prog/po­st;_ylc=X3oDMTJxdGo3­bHVqBF9TAzk3MzU5NzE0­BGdycElkAzEwMTMxMzkE­Z3Jwc3BJZAMxNzA1MDA2­Nzg4BG1zZ0lkAzU5OTM2­BHNlYwNmdHIEc2xrA3Jw­bHkEc3RpbWUDMTE2Njcw­OTc5Mw--?act=reply&m­essageNum=59936]
| Start a new topic
[http://groups.yahoo­.com/group/c-prog/po­st;_ylc=X3oDMTJlanZi­YjNxBF9TAzk3MzU5NzE0­BGdycElkAzEwMTMxMzkE­Z3Jwc3BJZAMxNzA1MDA2­Nzg4BHNlYwNmdHIEc2xr­A250cGMEc3RpbWUDMTE2­NjcwOTc5Mw--]
Messages [http://groups.yahoo­.com/group/c-prog/me­ssages;_ylc=X3oDMTJl­MWdkcWRrBF9TAzk3MzU5­NzE0BGdycElkAzEwMTMx­MzkEZ3Jwc3BJZAMxNzA1­MDA2Nzg4BHNlYwNmdHIE­c2xrA21zZ3MEc3RpbWUD­MTE2NjcwOTc5Mw--]
| Files [http://groups.yahoo­.com/group/c-prog/fi­les;_ylc=X3oDMTJmY29­2aGx1BF9TAzk3MzU5NzE­0BGdycElkAzEwMTMxMzk­EZ3Jwc3BJZAMxNzA1MDA­2Nzg4BHNlYwNmdHIEc2x­rA2ZpbGVzBHN0aW1lAzE­xNjY3MDk3OTM-]
| Photos [http://groups.yahoo­.com/group/c-prog/ph­otos;_ylc=X3oDMTJlYj­NqaGRyBF9TAzk3MzU5Nz­E0BGdycElkAzEwMTMxMz­kEZ3Jwc3BJZAMxNzA1MD­A2Nzg4BHNlYwNmdHIEc2­xrA3Bob3QEc3RpbWUDMT­E2NjcwOTc5Mw--]
| Links [http://groups.yahoo­.com/group/c-prog/li­nks;_ylc=X3oDMTJmbWZ­maGxnBF9TAzk3MzU5NzE­0BGdycElkAzEwMTMxMzk­EZ3Jwc3BJZAMxNzA1MDA­2Nzg4BHNlYwNmdHIEc2x­rA2xpbmtzBHN0aW1lAzE­xNjY3MDk3OTM-]
| Database [http://groups.yahoo­.com/group/c-prog/da­tabase;_ylc=X3oDMTJj­ZmZuZTYwBF9TAzk3MzU5­NzE0BGdycElkAzEwMTMx­MzkEZ3Jwc3BJZAMxNzA1­MDA2Nzg4BHNlYwNmdHIE­c2xrA2RiBHN0aW1lAzEx­NjY3MDk3OTM-]
| Polls [http://groups.yahoo­.com/group/c-prog/po­lls;_ylc=X3oDMTJmM3V­lMmJyBF9TAzk3MzU5NzE­0BGdycElkAzEwMTMxMzk­EZ3Jwc3BJZAMxNzA1MDA­2Nzg4BHNlYwNmdHIEc2x­rA3BvbGxzBHN0aW1lAzE­xNjY3MDk3OTM-]
To unsubscribe, send a blank message to
<mailto:c-prog-unsu­bscribe-hHKSG33Tihhb­jbujkaE4pw@public.gm­ane.org>.
Yahoo! Groups [http://groups.yahoo­.com/;_ylc=X3oDMTJkZ­jUzNjBvBF9TAzk3MzU5N­zE0BGdycElkAzEwMTMxM­zkEZ3Jwc3BJZAMxNzA1M­DA2Nzg4BHNlYwNmdHIEc­2xrA2dmcARzdGltZQMxM­TY2NzA5Nzkz]
Change settings via the Web [http://groups.yahoo­.com/group/c-prog/jo­in;_ylc=X3oDMTJmZWRn­NnQ0BF9TAzk3MzU5NzE0­BGdycElkAzEwMTMxMzkE­Z3Jwc3BJZAMxNzA1MDA2­Nzg4BHNlYwNmdHIEc2xr­A3N0bmdzBHN0aW1lAzEx­NjY3MDk3OTM-]
(Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest [mailto:c-prog-digest-hHKSG33TihhbjbujkaE4pw@public.gmane.org?subject=Email Delivery: Digest]
| Switch format to Traditional [mailto:c-prog-traditional-hHKSG33TihhbjbujkaE4pw@public.gmane.org?subject=Change Delivery Format: Traditional]
Visit Your Group
[http://groups.yahoo­.com/group/c-prog;_y­lc=X3oDMTJkZG01Z2VmB­F9TAzk3MzU5NzE0BGdyc­ElkAzEwMTMxMzkEZ3Jwc­3BJZAMxNzA1MDA2Nzg4B­HNlYwNmdHIEc2xrA2hwZ­gRzdGltZQMxMTY2NzA5N­zkz]
| Yahoo! Groups Terms of Use [http://docs.yahoo.c­om/info/terms/] |
Unsubscribe
[mailto:c-prog-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org?subject=]Recent
Activity

* 60 New Members [http://groups.yahoo­.com/group/c-prog/me­mbers;_ylc=X3oDMTJmM­GNwZmk5BF9TAzk3MzU5N­zE0BGdycElkAzEwMTMxM­zkEZ3Jwc3BJZAMxNzA1M­DA2Nzg4BHNlYwN2dGwEc­2xrA3ZtYnJzBHN0aW1lA­zExNjY3MDk3OTM-]

Visit Your Group
[http://groups.yahoo­.com/group/c-prog;_y­lc=X3oDMTJldjQ1YnNrB­F9TAzk3MzU5NzE0BGdyc­ElkAzEwMTMxMzkEZ3Jwc­3BJZAMxNzA1MDA2Nzg4B­HNlYwN2dGwEc2xrA3Zna­HAEc3RpbWUDMTE2NjcwO­Tc5Mw--]SPONSORED
LINKS

* C and c++ [http://groups.yahoo­.com/gads;_ylc=X3oDM­TJjNGRxdmhxBF9TAzk3M­zU5NzE0BF9wAzEEZ3JwS­WQDMTAxMzEzOQRncnBzc­ElkAzE3MDUwMDY3ODgEc­2VjA3NsbW9kBHN0aW1lA­zExNjY3MDk3OTM-?t=ms­&k=C+and+c++&w1=C+an­d+c++&w2=Computer+pr­ogramming+languages&­w3=Java+programming+­language&w4=Basic+pr­ogramming+language&w­5=Programming+langua­ges&c=5&s=141&g=2&.s­ig=9yL03T42tK7BXBfk8­CiaAw]

* Computer programming languages [