elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Los 10 CVE más críticos (peligrosos) de 2020


  Mostrar Mensajes
Páginas: 1 ... 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 [108] 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 ... 137
1071  Sistemas Operativos / Windows / Re: [SOLUCIONADO] Particionar disco C sin perder el SO en: 16 Febrero 2011, 19:44 pm
HOLA!!!

Si, el tema es que siempre que instale linux borraba el windows y hacia 2 pariciones, en una colgaba el linux(en este caso kubuntu) y despues el W$.

Igual ya lo instale sin problemas Gracias :D

GRACIAS POR LEER!!!
1072  Programación / Programación Visual Basic / Re: [RETO] uCaseCorrect. Corrector de Mayusculas! en: 16 Febrero 2011, 19:17 pm
HOLA!!!

@BlackZeroX▓▓▒▒░░: SOLUCIONADO, proba con el codigo nuevo.

GRACIAS POR LEER!!!
1073  Programación / Programación Visual Basic / Re: Ayuda con programa en Visual Basic en: 16 Febrero 2011, 19:08 pm
HOLA!!!

 @Herio : xD Es cierto, me pasa por no testear y programar directo aca en el foro XD.

Igual yo no lo hubiese programado asi, pero segui la logica de Nightwinds

GRACIAS POR LEER!!!
1074  Programación / Programación Visual Basic / Re: ASISTENCIA PARA PROFESORES en: 16 Febrero 2011, 19:06 pm
HOLA!!!

@BlackZeroX▓▓▒▒░░ Si no tengo red XD estoy perdido es cierto.

GRACIAS POR LEER!!!
1075  Programación / Programación Visual Basic / Re: [RETO] IsFibonacciNumber(N as long) as Boolean en: 16 Febrero 2011, 19:04 pm
HOLA!!!

@BlackZeroX▓▓▒▒░░ : Sorry no me habia dado cuenta :P.

Ya modifique las cosas

HOLA!!!

Creo que ya terminamos :P :

TABLA POSITIVOS Y NEGATIVOS
Código:
"******TEST HECHO POR 79137913******"
**PRUEBA CON NUMEROS +/- HASTA EL MAX**
7913: 26,316 msec
BZro: 49,330 msec

Código:
Comprobacion de numeros de Fibonacci Positivos:
Ganador    Elemental Code
2do Puesto Mr Frog
3er Puesto 79137913

Comprobacion de numeros de Fibonacci Positivos (trampa):
Ganador    Mr Frog
2do Puesto Ignorante v1.1
3er Puesto BlackZeroX[escala de grises :P]

Comprobacion de numeros de Fibonacci Enteros (+/-):
Ganador 79137913
2do Puesto BlackZeroX[/escala de grises :P]

GRACIAS POR LEER!!!

GRACIAS POR LEER!!!
1076  Programación / Programación Visual Basic / Re: Ayuda con programa en Visual Basic en: 16 Febrero 2011, 18:32 pm
HOLA!!!

Código
  1. Private Sub Vw_Click()
  2. Dim x1 As Integer
  3. Dim y1 As Integer
  4. Dim z As Integer
  5. r = 2
  6. x1 = Val(x.Text)
  7. y1 = Val(y.Text)
  8. For x1 = r To y1 ' ERROR GRAVE GUARDSATE LA VARIABLE X.TEXT EN X1 Y ACA
  9.             ' LA SOBRE ESCRIBIS CON R QUE ES 2 ...
  10.             ' APARTE SI HACES QUE VAYA HASTA Y1 AL MULTIPLICAR POR R QUE ES 2
  11.             ' VAS A LLEGAR HASTA Y1*2  
  12.  
  13. z = x1 * r
  14. c.AddItem z
  15. Next x1
  16. End Sub

Solucion slecciona para ver (manteniendo tu estructura de codigo):
Private Sub Vw_Click()
DIM X1 AS INTEGER
DIM X2 AS INTEGER
DIM Z AS INTEGER
DIM R AS INTEGER
    x1 = Val(x.Text)
    y1 = Val(y.Text)
    R=2
    FOR X1 = X1 TO Y1
        Z = X1*R
        IF Z > Y1 THEN EXIT FOR
        c.AddItem z
    NEXT
End Sub

GRACIAS POR LEER!!!
1077  Programación / Programación Visual Basic / Re: [RETO] uCaseCorrect. Corrector de Mayusculas! en: 16 Febrero 2011, 17:55 pm
HOLA!!!

Al fin!

Termine la funcion, estoy feliz con que sea funcional XD no se como me va a ir con la velocidad, seguro es lenta :P

Código
  1. Private Function uCaseCorrect7913(Txt As String) As String
  2. Dim X         As Long
  3. Dim Y         As Long
  4. Dim Aux()     As String
  5. Dim MED       As Long
  6. Dim Ubi()     As Long
  7. Dim Susp      As Long
  8. Dim SIGNO(2)  As String
  9.  
  10. SIGNO(0) = ".": SIGNO(1) = "?": SIGNO(2) = "!"   'TOMADO DE XXX-ZERO-XXX
  11.  
  12. Txt = "." & Txt & "a"
  13. ReDim Sus(Int(Len(Txt) / 3))
  14. ReDim Ubi(Len(Txt) + 5)
  15.    '".?¡"
  16.    For X = 0 To 2
  17.        Do
  18.            Y = Y + 1
  19.            Ubi(Y) = InStr(Ubi(Y - 1) + 1, Txt, SIGNO(X))
  20.        Loop While Ubi(Y) <> 0
  21.    Next
  22.    'COMPROBAR "..."
  23.    Do
  24.        Susp = InStr(Susp + 1, Txt, "...")
  25.        If Susp <> 0 Then
  26.            For X = 1 To Y
  27.                If Ubi(X) = Susp + 2 Then Ubi(X) = 0
  28.            Next
  29.        End If
  30.    Loop While Susp <> 0
  31.    'PONER MAYUSCULAS A LA PUNTUACION
  32.    ReDim Preserve Ubi(Y)
  33.    For X = 1 To Y
  34.        If Ubi(X) > 0 Then
  35.            MED = Ubi(X)
  36.            Do
  37.                MED = MED + 1
  38.            Loop While Not (((Asc(Mid$(Txt, MED, 1)) > 64) And Asc(Mid$(Txt, MED, 1)) < 91) Or ((Asc(Mid$(Txt, MED, 1)) > 96) And Asc(Mid$(Txt, MED, 1)) < 123)) And Not (Mid$(Txt, MED, 1) = "," Or Mid$(Txt, MED, 1) = ";" Or Mid$(Txt, MED, 1) = ".")
  39.            Mid$(Txt, MED, 1) = UCase$(Mid$(Txt, MED, 1))
  40.        End If
  41.    Next
  42.    'vbNewLine--------vbNewLine
  43.    Aux = Split(Txt, vbNewLine)
  44.    For X = 0 To UBound(Aux)
  45.        MED = 0
  46.        If X <> 0 Then
  47.            If Right$(Aux(X - 1), 1) = "." Or Right$(Aux(X - 1), 1) = "?" Or Right$(Aux(X - 1), 1) = "!" Then
  48.                Do
  49.                    MED = MED + 1
  50.                Loop While Not (((Asc(Mid$(Aux(X), MED, 1)) > 64) And Asc(Mid$(Aux(X), MED, 1)) < 91) Or ((Asc(Mid$(Aux(X), MED, 1)) > 96) And Asc(Mid$(Aux(X), MED, 1)) < 123))
  51.                Mid$(Aux(X), MED, 1) = UCase$(Mid$(Aux(X), MED, 1))
  52.            End If
  53.        End If
  54.    Next
  55.    For X = 0 To UBound(Aux)
  56.        uCaseCorrect7913 = uCaseCorrect7913 & Aux(X) & vbNewLine
  57.    Next
  58.    uCaseCorrect7913 = Mid$(uCaseCorrect7913, 2, Len(uCaseCorrect7913) - 4)
  59. End Function
  60.  

GRACIAS POR LEER!!!
1078  Programación / Programación Visual Basic / Re: Conexion a SQL Completa con VB 6.0 en: 16 Febrero 2011, 16:14 pm
HOLA!!!

Cada recordset vendria a ser en que lugar de la base de datos estas posicionado.

Y la conexión es el enlace entre tu programa y la BD

GRACIAS POR LEER!!!
1079  Programación / Programación Visual Basic / Re: [RETO] uCaseCorrect(Txt as String) as String ______Corrector de Mayusculas. en: 16 Febrero 2011, 16:09 pm
HOLA!!!

Actualizado el RETO!

Agregadas variables booleanas para seleccionar si queres poner mayusculas despues de puntos, signos de interrogacion o exclamacion.


GRACIAS POR LEER!!!
1080  Programación / Programación Visual Basic / Re: Conexion a SQL Completa con VB 6.0 en: 16 Febrero 2011, 16:04 pm
HOLA!!!

Te recomiendo que leas esto:
http://www.elguille.info/vb/bases/ADO/indiceADO.htm

Igual yo uso DAO cuando uso bases de datos (las odio) prefiero usar mis propias bases de datos.

GRACIAS POR LEER!!!
Páginas: 1 ... 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 [108] 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 ... 137
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines