/*****************************************************************************
 *  Classes by Orion Elder.                                               *
 *                                                                           *
 *  Updates to this snippet can be found at the SSWRA:                       *
 *  http://www.geocities.com/knytehawk/smaug/index.html                      *
 *                                                                           *
 *  Please send all bug reports, suggestions, or ideas to:                   *
 *  orion_elder@charter.net                                                  *
 *                                                                           *
 *  NOTE: If you downloaded this snippet from the SSWRA disregard. I will    *
 *        under no circumstances support versions of this snippet gleaned    *
 *        from other sources. If you're having problems download a fresh     *
 *        copy from the SSWRA and re-install.                                *
 *                                                                           *
 * If you're having problems with your copy of this snippet, please check to *
 * ensure that no updates have been posted before seeking help.              *
 *                                                                           *
 * Copyright 2001-2009 by Orion Elder                                        *
 *****************************************************************************/

[act_info.c]

At the bottom add:

void do_classes(CHAR_DATA *ch, char *argument)
{
    int iClass=0;

    send_to_pager("\n\r\n\r", ch);
    send_to_pager_color("&C&w-=-&C&r=-=&C&w-=-&C&r=&C&w( &C&WClasses &C&w)&C&r=&C&w-=-&C&r=-=&C&w-=-&C&w", ch);
    send_to_pager("\n\r", ch);

    for (iClass = 0; iClass < MAX_PC_CLASS; iClass++)
    {
        pager_printf_color( ch, "&C&w  %s\n\r", class_table[iClass]->who_name );
    }
    return;
}

Then in tables.c and mud.h add the appropriate calls.

Next, make clean, make, and then go into the MUD. In the MUD create the
command, then save the command table. And you have your new command. :)
