Please help c++ program

This is a discussion on Please help c++ program within the C++ Programming forums, part of the General Programming Boards category; Its just a simple matter of calling the relevant functions in the right order, with lots of cout statements. First ...

  1. #16
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,494
    Its just a simple matter of calling the relevant functions in the right order, with lots of cout statements.

    First 3 lines are HIGH, AVG and LOW, so my guess is you call

    highestgrade ( examscore , i );
    avggrade ( examscore , i );
    lowestgrade (examscore , i);

    say
    Code:
      cout << "|  HIGH  |" 
           << setw(6) << highest 
           << "   |   "
           << gradetocode(highest)
           << "   |" << endl;
    And the rest is just a for loop iterating through the array of individual scores.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  2. #17
    Registered User
    Join Date
    Mar 2004
    Posts
    15
    thank you for your help

  3. #18
    Been here, done that.
    Join Date
    May 2003
    Posts
    1,157
    FYI, you claim you have 80-85% of the code done. What you posted was less than 1% done. You should post at least the portion of the code you are having trouble with so we can see what you are doing and be able to help you. That would have helped us not waste time with 7 or 8 irrelevant posts.

    So for next time, post enough info to give us a complete picture of the difficulty.
    Definition: Politics -- Latin, from
    poly meaning many and
    tics meaning blood sucking parasites
    -- Tom Smothers

  4. #19
    Registered User
    Join Date
    Mar 2004
    Posts
    15
    Well Walt if you would have read through all the irrelevant posts you would have seen that this is my first class , and 80 -85 % of the overall code was complete - if you find my post and the replies irrelevant then dont bother replying , like I said before you all werent born computer programmers , you started somewhere . Now I am starting somewhere and since im having trouble with the info I was asking about , I may have not been able to communicate properlyy what I needed help with exactly , but dont worry I wont post anything else since this seems to be a website where everyone is an absolute genius and forget where they started from .

  5. #20
    Been here, done that.
    Join Date
    May 2003
    Posts
    1,157
    I apologize. With the advent of the new board, I completely missed the rest of the code. I did not notice the scroll bar since this board never had them before. All I noticed was up to an include.

    It wasn't your fault, it was mine.
    Definition: Politics -- Latin, from
    poly meaning many and
    tics meaning blood sucking parasites
    -- Tom Smothers

  6. #21
    Registered User
    Join Date
    Mar 2004
    Posts
    15
    its ok its just frustrating for me ive been out of high school since 1993 and this is my first programming class and i know to most of you it looks easy but to me and my classmates its really starting to get hard for us . I really dont want a free ride because i wont learn anything and this is the first class if i dont get everything i need from it I will fail in all my future classes .

    No hard feelings , I appreciate the message .

    Computer programming is a great interest of mine i love working it through and seeing the end result .

    And I promise I will never ask what int means

  7. #22
    Registered User
    Join Date
    Mar 2004
    Posts
    15
    You know what walt I just looked at my original post and I dont see a way to scroll through the rest of my program , do you have to reply to it to see the full code ?

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Issue with program that's calling a function and has a loop
    By tigerfansince84 in forum C++ Programming
    Replies: 9
    Last Post: 11-12-2008, 12:38 PM
  2. Need help with a program, theres something in it for you
    By engstudent363 in forum C Programming
    Replies: 1
    Last Post: 02-29-2008, 12:41 PM
  3. Replies: 4
    Last Post: 02-21-2008, 09:39 AM
  4. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21