Guest_imported
New member
- Jan 1, 1970
- 0
Hello Everyone out there,
I am desperate for someone to help me with my C programming. I am taking beginning C language for the very first time. I have never taken a programming language before. For several sleepless nights I have been trying to work on this program. The question is: How do you create a function which uses the bubble-sort routine to sort the Employee's structure according to ascending salary? Can someone help me? I am terribly frustrated.
Signed "IamNewToC"
#include <stdio.h>
struct Employee
{
int age;
int years_employed;
long int salary;
};
main(){
struct Employee myEmployee[5] =
{
{ 25,1,36000},
{ 34,6,42000},
{ 36,10,44500},
{ 29, 4,38000},
{ 30, 7,41000}
};
}
I am desperate for someone to help me with my C programming. I am taking beginning C language for the very first time. I have never taken a programming language before. For several sleepless nights I have been trying to work on this program. The question is: How do you create a function which uses the bubble-sort routine to sort the Employee's structure according to ascending salary? Can someone help me? I am terribly frustrated.
Signed "IamNewToC"
#include <stdio.h>
struct Employee
{
int age;
int years_employed;
long int salary;
};
main(){
struct Employee myEmployee[5] =
{
{ 25,1,36000},
{ 34,6,42000},
{ 36,10,44500},
{ 29, 4,38000},
{ 30, 7,41000}
};
}