Thanks guys. Per your advice, I changed my function definition to...
void namesort(int n, int usenum, char list[][MAXNAME], int sort[])
but at compile time it says, "conflicting types for...
Type: Posts; User: sbaker1313
Thanks guys. Per your advice, I changed my function definition to...
void namesort(int n, int usenum, char list[][MAXNAME], int sort[])
but at compile time it says, "conflicting types for...
#include <stdio.h>
#include <string.h>
#define MAXOPS 200
#define MAXNAME 15
void swap(int *index1, int *index2);
void namesort(int n, int usenum, char list[], int sort[]);
int main(void)
Wow! Everybody has been incredibly helpful. Thanks so much.
In response to Adak's question, I guess what I'm looking to do for starters is get some practice working with parallel arrays. I...
my 'date' format is [yys] where 's' is the season. for instance, 06F would be Fall of 2006. it's based on academic years, so there's no 'summer' to conflict with 'spring'.
I'm trying to read data from a file into parallel arrays. It's a list of names (first and last), dates, and scores. I then need to sort those arrays by any one of the four things being read in...