FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Buscar | Temas de Hoy | Marcar Foros Como Leídos |
|
Herramientas | Buscar en Tema | Desplegado |
|
#1
|
|||
|
|||
conversion de numeros romanos a letras
Holas, q tal, soy nuevo y no manejo muy bien el delphi, lo veo interesante pero un poco mas complejo q otros programas
kisiera q me ayuden con el codigo de esta conversion, de romanos a letras (ejemplo, VI = seis, XXII = veintidos) por favor, es muy importante este trabajo, x eso llegue hasta aka buskando ayuda les agradezco de antemano, y en un futuro vere en q puedo ayudar a esta comunidad... p.d.: por favor! :'( mi msn es: rolovd@hotmail.com |
#2
|
||||
|
||||
Hola,
Aprovechando el estupendo componente ATexto, escrito por Antoni Aloy, solamente nos quedaría convertir un número romano al correspondiente entero. He buscado en Koders.com y he encontrado una clase escrita en Java que trata sobre números romanos. En dicha clase hay un método, entre otros, cuyo nombre lo dice todo: "RomanToInt". He traducido dicho método a Delphi como una función y parece ir bien. La referida clase es muy curiosa y no estaría mal traducirla entera, pero, en todo caso, cierto método, además del mencionado, merecería atención: estoy hablando del método "validate". El caso es que gracias a esas dos piezas: el componente ATexto y la siguiente función, por lo menos, podrías conseguir lo que te propones, me parece a mí, vamos.
|
#3
|
||||
|
||||
Hola,
Pues nada, que no he podido evitarlo:
|
#4
|
||||
|
||||
Que bárbaro Maese Dec, ojala y yo te hubiera conocido en mis tiempos de estudiante, jeje
__________________
|
#5
|
|||
|
|||
Cita:
salu2 |
#7
|
||||
|
||||
duda
Cita:
Que maravilla quisiera saber como implementar esta clase a un proyecto de consola... para hacerlo correr tengo que llamar a la clase o como? te agradezco la ayuda, soy nueva programando y ando un poco perdida |
#8
|
||||
|
||||
Ejemplo sencillo:
Saludos. |
Herramientas | Buscar en Tema |
Desplegado | |
|
|
|