[Off] Desafio - String Reverse
#10

Quote:
Originally Posted by Dolby
Посмотреть сообщение
Agora esta funcional Kikito, porйm vocк imprime, e nгo retorna a string, entгo nгo vale
Deves estar a brincar... >.>

Feito em pawn:
pawn Код:
#define MAX 128
////////////////////////
stock ReverseSTR(str[])
{
    new devolve[MAX], letra = 0;
    for(new i = strlen(str) -1; i >= 0; i--, letra++) {
        devolve[letra] = str[i];
    }
    devolve[letra++] = '\0';
    return devolve;
}
Reply


Messages In This Thread
Desafio - String Reverse - by Dolby - 09.11.2013, 21:17
Respuesta: Desafio - String Reverse - by DanDRT - 09.11.2013, 21:26
Re: Desafio - String Reverse - by GWMPT - 09.11.2013, 21:36
Re: Desafio - String Reverse - by Dolby - 09.11.2013, 21:36
Re: Desafio - String Reverse - by GWMPT - 09.11.2013, 21:49
Re: Desafio - String Reverse - by iHarzard - 09.11.2013, 21:53
Re: Desafio - String Reverse - by Dolby - 09.11.2013, 21:57
Re: Desafio - String Reverse - by GWMPT - 09.11.2013, 22:00
Re: Desafio - String Reverse - by Dolby - 09.11.2013, 22:08
Re: Desafio - String Reverse - by GWMPT - 10.11.2013, 11:58

Forum Jump:


Users browsing this thread: 2 Guest(s)