error: ./Emprecord.h: NO such file or directory
error: conflicting declaration types for a^qsorta^
note: previous declaration of a^qsorta^ was here
In function a^qsorta^
error: incompatible types when initializing type a^inta^ using type a^Emprecorda^
error: a^Emprecorda^ has no member named a^finisha^
warning: passing argument 2 of a^strcmpa^ makes a pointer from integer without cast
/usr/include/string.h:142: note; expected a^const char *a^ but argument is of type a^inta^
error: a^Emprecorda^ has no member named a^finisha^
warning: passing argument 2 of a^strcmpa^ makes a pointer from integer without cast
/usr/include/string.h:142: note; expected a^const char *a^ but argument is of type a^inta^
error: expected identifier or a^(a^ before a^[a^ token
error: expected identifier or a^(a^ before a^[a^ token
The code is for anyone who wants to see it. Just so...I don't know
#include<stdio.h>
#include<string.h>
#include "./Emprecord.h"
#define SIZE 5
typedef struct Emprecord
Emprecord;Code:{ char last[21]; char first[21]; }
void qsort(int list[], int start, int finish);
void showtable(int list[]);
void qsort(Emprecord *list, int start, int finish)
void showtable(int list[])Code:{ int left=start; int right=finish; int pivot=list[(start+finish)/2]; while(left<right)if(start<right) qsort(list, start, right); if(left<finish) qsort(list, finish, left); }Code:{ while(strcmp(list[left].finish, pivot)<0) left++; while(strcmp(list[right].finish,pivot)>0) right--; if (left<=right);}Code:{ Emprecord temp[1]; temp[0]=list[left]; Emprecord[left]=Emprecord[right]; Emprecord[right]=temp[0]; left++; right--; }
Code:{ int i; for(i=0;i<SIZE;i++) printf("This is the unsorted names",list[i]); }



LinkBack URL
About LinkBacks


