[Off] Desafio - String Reverse
#7

Quote:
Originally Posted by Kikito
Посмотреть сообщение
Introduzido: Kikito
Devolvido: otikiK

Jб estou um pouco a dormir... o meu raciocнnio а noite й lento...
Eu introduzi outra palavra qualquer, veja o resultado:

Letra introduzida: PORTUGAL
Letra ao contrario: GUTROP

Quote:
Originally Posted by iHarzard
Посмотреть сообщение
Nгo testei.

pawn Код:
stock reverter(string[])
{
    new StrReverse[10];
    for(new i = strlen(string); i > -1; --i)  StrReverse[strlen(StrReverse)] = string[i]
    return StrReverse;
}
Vocк esqueceu ponto e virgula no final da linha, tirando isto ficou funcional.
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: 1 Guest(s)