HOLA!!!
Es cierto, yo lo vi ayer y anteayer.
GRACIAS POR LEER!!!
Es cierto, yo lo vi ayer y anteayer.
GRACIAS POR LEER!!!
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes MenúCita de: zapala76 en 5 Junio 2012, 22:07 PM
Lo que lastima la vista es tu falta de ortografía (demasiado se escribe), y además podrías ver las cosas positivas también, no?'
Cita de: EleKtro H@cker en 3 Junio 2012, 10:49 AM@echo off
Echo Introduezca los grados Celsius (§C)
set /P gradoscelsius=^>^>
Set /A gradoscelsius=%gradoscelsius:-=%
set /A resultado=%gradoscelsius%-273
Echo Resultado: %gradoscelsius% §C = %resultado% §K | MORE
pause
Private Function AndAlt(Byte1 As Long, Byte2 As Long) As Long
Dim bit1() As Boolean
Dim bit2() As Boolean
Dim bit3() As Boolean
Dim CT As Long
Dim Tam As Long
Dim b1 As Long
Dim b2 As Long
b1 = Byte1
b2 = Byte2
Do
ReDim Preserve bit1(CT)
If b1 = 1 Then ReDim Preserve bit1(CT): bit1(CT) = True: Exit Do
If b1 = 0 Then ReDim Preserve bit1(CT): Exit Do
bit1(CT) = CBool(b1 Mod 2)
b1 = Fix(b1 / 2)
CT = CT + 1
Loop
CT = 0
Do
If b2 = 1 Then ReDim Preserve bit2(CT): bit2(CT) = True: Exit Do
If b2 = 0 Then ReDim Preserve bit2(CT): Exit Do
ReDim Preserve bit2(CT)
bit2(CT) = CBool(b2 Mod 2)
b2 = Fix(b2 / 2)
CT = CT + 1
Loop
If UBound(bit1) > UBound(bit2) Then ReDim Preserve bit2(UBound(bit1))
If UBound(bit1) < UBound(bit2) Then ReDim Preserve bit1(UBound(bit2))
Tam = UBound(bit1)
ReDim bit3(Tam)
For X = 0 To Tam
If bit1(X) Then If bit2(X) Then bit3(X) = True
Next
For X = 0 To Tam
If bit3(X) Then AndAlt = AndAlt + 2 ^ (X)
Next
End Function
Private Function OrAlt(Byte1 As Long, Byte2 As Long) As Long
Dim bit1() As Boolean
Dim bit2() As Boolean
Dim bit3() As Boolean
Dim CT As Long
Dim Tam As Long
Dim b1 As Long
Dim b2 As Long
b1 = Byte1
b2 = Byte2
Do
ReDim Preserve bit1(CT)
If b1 = 1 Then ReDim Preserve bit1(CT): bit1(CT) = True: Exit Do
If b1 = 0 Then ReDim Preserve bit1(CT): Exit Do
bit1(CT) = CBool(b1 Mod 2)
b1 = Fix(b1 / 2)
CT = CT + 1
Loop
CT = 0
Do
If b2 = 1 Then ReDim Preserve bit2(CT): bit2(CT) = True: Exit Do
If b2 = 0 Then ReDim Preserve bit2(CT): Exit Do
ReDim Preserve bit2(CT)
bit2(CT) = CBool(b2 Mod 2)
b2 = Fix(b2 / 2)
CT = CT + 1
Loop
If UBound(bit1) > UBound(bit2) Then ReDim Preserve bit2(UBound(bit1))
If UBound(bit1) < UBound(bit2) Then ReDim Preserve bit1(UBound(bit2))
Tam = UBound(bit1)
ReDim bit3(Tam)
For X = 0 To Tam
If bit1(X) Then bit3(X) = True
If bit2(X) Then bit3(X) = True
Next
For X = 0 To Tam
If bit3(X) Then OrAlt = OrAlt + 2 ^ (X)
Next
End Function
Private Function XorAlt(Byte1 As Long, Byte2 As Long) As Long
Dim bit1() As Boolean
Dim bit2() As Boolean
Dim bit3() As Boolean
Dim CT As Long
Dim Tam As Long
Dim b1 As Long
Dim b2 As Long
b1 = Byte1
b2 = Byte2
Do
ReDim Preserve bit1(CT)
If b1 = 1 Then ReDim Preserve bit1(CT): bit1(CT) = True: Exit Do
If b1 = 0 Then ReDim Preserve bit1(CT): Exit Do
bit1(CT) = CBool(b1 Mod 2)
b1 = Fix(b1 / 2)
CT = CT + 1
Loop
CT = 0
Do
If b2 = 1 Then ReDim Preserve bit2(CT): bit2(CT) = True: Exit Do
If b2 = 0 Then ReDim Preserve bit2(CT): Exit Do
ReDim Preserve bit2(CT)
bit2(CT) = CBool(b2 Mod 2)
b2 = Fix(b2 / 2)
CT = CT + 1
Loop
If UBound(bit1) > UBound(bit2) Then ReDim Preserve bit2(UBound(bit1))
If UBound(bit1) < UBound(bit2) Then ReDim Preserve bit1(UBound(bit2))
Tam = UBound(bit1)
ReDim bit3(Tam)
For X = 0 To Tam
If bit1(X) Then If bit2(X) = False Then bit3(X) = True
If bit2(X) Then If bit1(X) = False Then bit3(X) = True
Next
For X = 0 To Tam
If bit3(X) Then XorAlt = XorAlt + 2 ^ (X)
Next
End Function
Private Function NotAlt(Byte1 As Long) As Long
NotAlt = -(Byte1 + 1)
End Function