hey, here is my problem, i know it's probably simple but i'm stuck.... i'm working on a simple student record program, here is my structure...

struct student{
int stdnum;
char stdname[40];
bool active;
};
struct classes{
int stdnum;
int classnum;
};
struct subject{
int classnum;
char classname[40];
int topic;
};


my job is to search and sort the info, basically just student name and student number, but the part i'm stuck on is the name. My array "array1[].stdname[]" will contain a name like "John Doe". My problem is, i have to sort by the last name, and i don't know how to extract "Doe" from the array. I'm pretty sure i need pointers, but i'm really lost... could someone please help me!!!??


[email protected] -emails welcome