Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

displaying data

Status
Not open for further replies.

julianluthor

Programmer
Nov 3, 2003
18
0
0
MY

my code below display data i the form of:
4
2
65
3
..
what can i do to make it looks like:
Data[0][0]=4
Data[0][1]=2
Data[0][3]=65
....until Data[500][500].
Code:
// papar Cluster.dat
    TStringList* papar = new TStringList;
   
    for (int b=0; b<Ydim + Sty; b++)
      for (int a=0; a<Xdim + Stx; a++)
        {
          papar->Add(AnsiString(Data[a][b]));
          
         }
      papar->SaveToFile(&quot;Cluster.dat&quot;);
      delete papar;
 
Code:
papar->Add(AnsiString(&quot;Data[&quot;)+IntToStr(a)+&quot;][&quot;+IntToStr(b)+&quot;]=&quot;+AnsiString(Data[a][b]));
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top