elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.
 
Inicio Ayuda Buscar Ingresar Registrarse
29 Mayo 2012, 07:00  


Tema destacado: ¿Eres nuevo? ¿Tienes dudas acerca del funcionamiento de la comunidad? Lee las Reglas Generales

+  Foro de elhacker.net
|-+  Programación
| |-+  Scripting (Moderadores: Novlucker, Leo Gutiérrez., EleKtro H@cker)
| | |-+  [Código-Ruby]String to ASCII - JaAViEr
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: [Código-Ruby]String to ASCII - JaAViEr  (Leído 465 veces)
0x5d

Desconectado Desconectado

Mensajes: 137

¡ Programming the World !


Ver Perfil WWW
[Código-Ruby]String to ASCII - JaAViEr
« en: 7 Enero 2012, 19:33 »

Hola, buen día.

Antes de aprender Python, no sabía si meterle mano a Python o a Ruby. Como tomé Python, ahora será el turno de Ruby. El problema es que mi Debian murió y estoy programando desde el tablet.

Bueno, ya todos conocen el String to ASCII, esta vez en Ruby:
Código
puts 'Inserta un string ::>'
STDOUT.flush
var=gets.chomp
h=''
i = 0
puts 'Salida ASCII:'
while i<var.length
 h+=var[i].to_s+' '
 i+=1
end
puts h
 

Saludos.


En línea

¡ Te espero en el foro de RootCodes -> http://rootcodes.com/foro/index.php !
Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
[Aplicación] String-Ascii by castg
Nivel Web
Castg! 12 3,419 Último mensaje 29 Octubre 2009, 00:12
por Castg!
DaW String To ASCII (Windows/Linux)
Software
.:WindHack:. 0 640 Último mensaje 17 Abril 2010, 20:56
por .:WindHack:.
logear string (hex to ascii) con ollyscript
Ingeniería Inversa
.:UND3R:. 2 728 Último mensaje 4 Septiembre 2011, 17:58
por .:UND3R:.
[Código-Ruby]Sucesión Fibonacci - JaAViEr
Scripting
0x5d 0 213 Último mensaje 8 Enero 2012, 08:57
por 0x5d
[RUBY] Proyecto sin finalizar Art ASCII Factory ¿Alguien me toma el relevo?
Scripting
EleKtro H@cker 2 80 Último mensaje 24 Mayo 2012, 19:39
por EleKtro H@cker
Powered by SMF 1.1.16 | SMF © 2006-2008, Simple Machines