honestly, i have to finish this class out and i will this semester with the week left. if you want to help me, please do, but who sits on a computer programming message board at 6pm on a saturday to...
Type: Posts; User: lbillys
honestly, i have to finish this class out and i will this semester with the week left. if you want to help me, please do, but who sits on a computer programming message board at 6pm on a saturday to...
alright i have gotten all the errors to leave except for two and five warnings. I am unsure how to fix these.
hw12.c:20: warning: parameter names (without types) in function declaration...
i just got a lot of errors and warnings...
hcp-129-8-135-3% gcc hw12.c -o hw12.out
hw12.c:11: warning: no semicolon at end of struct or union
hw12.c:11: error: syntax error before "passfail"...
{
max=0;
locscndmax=0;
if(x>max)
{
locscndmax=max;
locscndmax=j;
max=x;
}
}
sorry i am confused. when i do this it prints out my max=0 and the location of both the first and the second max at the same location. how do i reset the max without making it 0 in the end
okay here is my retry
/* Homework 12 */
#define FILENAME "students.dat"
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
I have created a program to read from an external file. The program must locate the first maximum and the second. I am unsure about how to find the second maximum. Possibly by resetting the first...
I have a homework assignment that I have no idea where to go or what to do next. Could you please help? Thanks!
The assignment reads:
your program is to read from a file students.dat which may...