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...
Type: Posts; User: henz321
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...
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];
hey guys, sori i figured it out, haha silly me,
well yeah, thanks 7stud and Mathfan, you guys were a great help :)
much appreciated!
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...
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...
while (!inFileEvening.eof() )
{
// store data from file to variables
inFileEvening >> studenteveningId >> firstname >> surname >> num1 >> num2 >> num3 >> num4 >> num5;
...