Thread: problem with league table

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    396
    could you precise what you want to do with each function? because I don't get the logic: for instance in getTeam, I would expect the function to return an element of the team array, but it actually sets the name of each team, same thing for addTeam, the name suggests that the function adds an element, but in fact it resets the entire array of team...

    PS: you should get soon some appropriate advise about fflush(stdin)...
    Last edited by root4; 01-04-2009 at 03:30 AM.

  2. #2
    Registered User
    Join Date
    Jan 2009
    Posts
    7
    i am supposed to be displaying all of the team names in a table, each team is meant to play each other, so i need to be able to add results. the table is meant to update so for each set of results it need to update, games played, won lost etc.

    i was told to always use fflusch after scanf to clear and excess data, is this wrong?

    as you can see i am having a few problems

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Dictionary in C# to hash table in C?
    By dinoman in forum C Programming
    Replies: 2
    Last Post: 04-12-2009, 09:23 PM
  2. problem in multi times table
    By lolguy in forum C Programming
    Replies: 11
    Last Post: 12-28-2008, 11:17 AM
  3. Please help! Beginner stuck on table and array problem!
    By robsmith in forum C Programming
    Replies: 2
    Last Post: 03-10-2005, 11:42 AM
  4. Problem with Hash Table Linear Probing
    By kirby1024 in forum C Programming
    Replies: 5
    Last Post: 10-23-2002, 06:03 AM
  5. HELP:Hasing Table
    By Amber_liam in forum C++ Programming
    Replies: 2
    Last Post: 06-20-2002, 04:25 AM