943,718 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 2839
  • C++ RSS
Jul 28th, 2004
0

Displaying a League Table

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Maineboy is offline Offline
3 posts
since Jul 2004
Jul 28th, 2004
0

Re: Displaying a League Table

Greetings.
Welcome to daniweb.
Quote ...
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?
Reputation Points: 53
Solved Threads: 1
Posting Whiz
red_evolve is offline Offline
313 posts
since Jun 2003
Jul 29th, 2004
0

Re: Displaying a League Table

Quote 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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Maineboy is offline Offline
3 posts
since Jul 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: C++ cout statement
Next Thread in C++ Forum Timeline: need a little help figuring this out





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC