Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Delete This Thread Please.

D3NIL3D3NIL3 Member Posts: 4
Delete This Thread Please.

Comments

  • D3NIL3D3NIL3 Member Posts: 4
    i don't think that meets these requirements.. any others, or can someone make one pleasee!
  • AtexAtex Member Posts: 268
    : i don't think that meets these requirements.. any others, or can
    : someone make one pleasee!
    :

    Well, at least it should serve as guide ... start coding and ask for help if you get stuck.
  • Phat NatPhat Nat Member Posts: 757
    Unless you catch someone on a day where they feel extremely bored, I don't think you will find anyone to write this program for you.
    We are here to help people learn, not write their assignments.
    You will have to do it yourself, but we'll help you.

    Start by making a test text file in notepad (or similar). Create 15 records. Use three lines per record. If you're doing baseball, use something like first line is for Name, second line for Hits, third line for RBI.

    Then write the program that creates the datafile from this. It will need to have:
    [code]
    TYPE
    PlayerInfo = record
    Name : String;
    Hits : Word;
    RBI : Word;
    End;

    VAR
    Players : Array[1..15] Of PlayerInfo;
    [/code]

    Then load the text file in a loop, three lines at a time and store the info into each player.
    [code]
    PLAYERS[count].Name := Line1;
    PLAYERS[count].Hits := Line2;
    PLAYERS[count].RBI := Line3;
    [/code]

    This is the general idea anyways. Your teacher should be able to help you get started and we'll help you along as well.

    BTW WriteLn() shows text to the screen.
  • D3NIL3D3NIL3 Member Posts: 4
    my teacher said he will not help at all. i joined the class three quarters through the semester because the teacher wanted me to learn this stuff even though i have no interest int it
  • ashiishashiish Member Posts: 3

    ...............

Sign In or Register to comment.