| | |
Displaying a League Table
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2004
Posts: 3
Reputation:
Solved Threads: 0
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.
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.
Greetings.
Welcome to daniweb.
But, where's your code?
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.
"Study the past if you would define the future" - Confucius
•
•
Join Date: Jul 2004
Posts: 3
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by red_evolve
Greetings.
Welcome to daniweb.
But, where's your code?
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.
![]() |
Similar Threads
- ootball league table - add data (C)
- Reading and Displaying a comma delimited text file to a table. (ASP)
Other Threads in the C++ Forum
- Previous Thread: C++ cout statement
- Next Thread: Bank account class
| Thread Tools | Search this Thread |
Tag cloud for C++
6 add api array arrays assignment beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion convert count data database delete desktop developer directshow display dll encryption error file forms fstream function functions game generator getline givemetehcodez graph homeworkhelper iamthwee ifstream input int integer java lazy lib linux loop looping loops map math matrix memory multidimensional newbie news node number output parameter pointer problem program programming project proxy python random read recursion recursive reference return string strings struct studio system template templates text tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets





