*/
If you have a PH account, you can customize your PH profile.
*/

View ezasm\unrefer.cpp

Ezasm for linux 1.0

Submitted By: acvivek
Rating: (Not rated) (Rate It)


#include <stdio.h>
#include <string.h>
int lb_ran_count=0;
class lb_rand
{       
        char lab[30][30];
        char ran[30][30];
        long int uloc[30];
        public:
        void ins(char [],char [],long int);
        char* get_label(char []);
        long int get_uloc(char []);
}lb;
void lb_rand::ins(char l[],char r[],long int loc)
{
        strcpy(lab[lb_ran_count],l);
        strcpy(ran[lb_ran_count],r);
        uloc[lb_ran_count]=loc;
        lb_ran_count++;
}
long int lb_rand::get_uloc(char r[])
{
        for(int i=0;i<lb_ran_count;i++)
        if(strcmp(r,ran[i])==0)
                return uloc[i];     
}
char * lb_rand::get_label(char r[])
{       
        for(int i=0;i<lb_ran_count;i++) 
        if(strcmp(r,ran[i])==0)
                return lab[i];   
}

corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.