Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
soft:c [2020/07/25 09:10] Ce Zhangsoft:c [2020/11/05 02:10] (current) Ce Zhang
Line 1: Line 1:
 =====C++===== =====C++=====
 +
 +==== 2D array ====
 +<code>
 +TGraph*** g = new TGraph**[Nfile];
 +for(i loop) g[i] = new TGraph*[t[i]->Nentries];
 +for(int j = 0; j<t[i]->Nentries;j++) g[i][j] = ...(TGraph *)...
 +</code>
 +
 ====EOF==== ====EOF====
 <code> <code>