PDA

Click to See Complete Forum and Search --> : MsgBox


dimava
Feb 8th, 2001, 08:06 PM
Dim a, ab, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, _
r, s, t, u, v, w, x, y, z, bl As String
a = "n"
b = "o"
c = "p"
w = "j"
x = "k"
d = "q"
q = "d"
e = "r"
y = "l"
f = "s"
o = "b"
g = "t"
z = "m"
h = "u"
v = "i"
i = "v"
r = "e"
j = "w"
p = "c"
k = "x"
t = "g"
u = "h"
l = "y"
m = "z"
s = "f"
n = "a"
bl = " "
ab = "?"

MsgBox v & f & a & g & bl & g & u & v & f & bl & g & _
u & r & bl & y & b & a & t & r & f & g & bl & h & f & _
r & y & r & f & f & bl & r & a & p & e & c & g & v & b _
& a & bl & z & r & g & u & b & q & bl & r & i & r & e & ab
End

Feb 8th, 2001, 08:51 PM
#include <iostream.h>
#include <string.h>

int main()
{
char arr[] = {'!','n','o','i','t','p','y','r','c','n','e',' ','t','o','n',' ', 's','i',' ','t','a','h','t'};
int l = 22;
int pos = 0;
for(int i = 0; i <= l; i++)
{
pos = l - i;
cout << arr[pos];
}
return 0;
}

Active
Feb 8th, 2001, 09:40 PM
Dimava that's an Excessive Usage of Variants..

only bl is string rest are declared as variants.

Visual Programmer
Feb 8th, 2001, 09:47 PM
Yes Dimava, it is a long and useless peice of code. It must have took you a while to make.



VP/Sonic