Displaying a League Table

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2004
Posts: 3
Reputation: Maineboy is an unknown quantity at this point 
Solved Threads: 0
Maineboy Maineboy is offline Offline
Newbie Poster

Displaying a League Table

 
0
  #1
Jul 28th, 2004
I am new to coding and I am trying to display a league table of football teams in a memo box using C++Builder.

The code below prints a list of the team names from an array of 12 teams, but I cannot get the rest of the details i.e. games played, for, against, points etc. to display as you would see a league printed in a newspaper i.e with the figures alongside the respective teams. I can only get them to print beneath each other.

Any help would be most welcome.

Regards,

Maineboy.
Reply With Quote Quick reply to this message  
Join Date: Jun 2003
Posts: 313
Reputation: red_evolve is on a distinguished road 
Solved Threads: 0
red_evolve's Avatar
red_evolve red_evolve is offline Offline
Posting Whiz

Re: Displaying a League Table

 
0
  #2
Jul 28th, 2004
Greetings.
Welcome to daniweb.
The code below prints a list of the team names from an array of 12 teams, but I cannot get the rest of the details i.e. games played, for, against, points etc. to display as you would see a league printed in a newspaper i.e with the figures alongside the respective teams.
But, where's your code?
"Study the past if you would define the future" - Confucius
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 3
Reputation: Maineboy is an unknown quantity at this point 
Solved Threads: 0
Maineboy Maineboy is offline Offline
Newbie Poster

Re: Displaying a League Table

 
0
  #3
Jul 29th, 2004
Originally Posted by red_evolve
Greetings.
Welcome to daniweb.

But, where's your code?
The code was in my original message, I don't know why it didn't print. It is shown again below and displays a list of team names when run. I want to be able to dislay a comlete league.

for (Index = 1; Index < 12; Index = Index + 1)
{
ARec = MyLeague.GtRecord(Index);
Memo1->Lines->Add(ARec.Name);
}

Where Memo1 is a Memo box used to display the information.

Regards,

Maineboy.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC