Search:

Type: Posts; User: henz321

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    1,054

    Tabulation, need help!

    Here's what i've done, the output of this program is suppose to have

    "w(1234) = 6 Sample set: 1 1 2 2 6 10" this works! however for larger numbers it wont have the correct sample set.

    The...
  2. Thread: Sorting list

    by henz321
    Replies
    2
    Views
    1,028

    i've done the question, so i'll give u a hint on...

    i've done the question, so i'll give u a hint on how i did it (using bubble sort



    while(i != length-1 )
    {

    if(list[i] > list[i+1])
    {
    temp = list[i+1];
  3. Replies
    5
    Views
    1,476

    hey guys, sori i figured it out, haha silly me, ...

    hey guys, sori i figured it out, haha silly me,
    well yeah, thanks 7stud and Mathfan, you guys were a great help :)
    much appreciated!
  4. Replies
    5
    Views
    1,476

    thanks guys ok , i've replaced the eof code,...

    thanks guys
    ok , i've replaced the eof code, with the white( inFile etc etc.)
    but now the loop aint working properly, it is skipping the first student, then the 3rd, then 5th, so its leaving out...
  5. Thread: Average score

    by henz321
    Replies
    22
    Views
    4,090

    why is it when i run it, it outputs sumthing like...

    why is it when i run it, it outputs sumthing like this?
    as you can see, it outputs the last student of each txt twice


    +++++Section 1 Student List+++++

    s1012 Bennet, Anne D 56.20 P
    s1236...
  6. Replies
    5
    Views
    1,476

    Need help : eof, loop, output file

    while (!inFileEvening.eof() )
    {
    // store data from file to variables
    inFileEvening >> studenteveningId >> firstname >> surname >> num1 >> num2 >> num3 >> num4 >> num5;


    ...
Results 1 to 6 of 6