[Off] Desafio: Comparador de strings com 3 parametros..
#5

pawn Code:
stock strcmp3(str1[], str2[], str3[]) {
    if(!strcmp(str1, str2, true)) return -1; //Primeiro igual o Segundo
    if(!strcmp(str2, str3, true)) return 1; //Segundo igual o Terceiro
    if(!strcmp(str1, str3, true)) return 2; //Primeiro igual o Terceiro
    return 0; //Nada igual
}
Nгo testei k
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)