[Off] Desafio - String Reverse
#9

Quote:
Originally Posted by Kikito
Посмотреть сообщение
Estou a dormir, totalmente.. jб venho cб por outro cуdigo.
Agora esta funcional Kikito, porйm vocк imprime, e nгo retorna a string, entгo nгo vale

Agora irei postar a melhor forma que achei atй agora:

pawn Код:
stock Reverse(input[], output[])
{
     new i,g;
     for(i = strlen(input)-1,g = 0; i+1 ^ 0; --i, ++g)
         output[g] = input[i];
     return output;
}
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)