|
-
Nov 19th, 2000, 09:41 PM
#1
Thread Starter
Addicted Member
Ok, this is something a friend of mine gave me.
Code:
unsigned char MousesAsciiArt[187] = {
201,176,177,178,219,219,219,219,219,
176,177,178,219,219,219,219,219,176,
177,178,219,219,178,219,219,205,205,
187, 10,186, 32, 32,176,177,178,219,
32, 32,176,177,178,219,219,178,219,
219,176,177,178,219,219,178,219,219,
32, 32,186, 10,186, 32, 32,176,177,
178,219, 32, 32,176,177,178,219,219,
219,219,219,176,177,178,219,219,219,
219,219, 32, 32,186, 10,186, 32, 32,
176,177,178,219, 32, 32,176,177,178,
219,219,178,219,219,176,177,178,219,
219,178,219,219, 32, 32,186, 10,186,
32, 32,176,177,178,219, 32, 32,176,
177,178,219,219,219,219,219,176,177,
178,219,219,178,219,219, 32, 32,186,
10,200,205,205,205,205,205,205,205,
205,205,205,205,205,205,205,205,205,
205,205,205,205,205,205,205,205,205,
205,188, 10, 10, 201, 36, 45};
void main(){
FILE *TARGET_FILE;
unsigned long FILE_SIZE = 0;
int CurChar = 0;
char FILE_GUTS[TARGET_FILE_SIZE - 1];
while(CurChar <= 173){
printf("%c",MousesAsciiArt[CurChar]);
CurChar++;}
In that code, how can I find out what each number represents?
Any help is appreciated. Thanks.
-
Nov 19th, 2000, 09:49 PM
#2
Frenzied Member
the simplest way is to start a console app project, add
#include <iostream.h>
and then cout << MousesAsciiArt;
it'll print out whatever it is
(it's a little 3d thing the letters TBH with a border around it)
-
Nov 19th, 2000, 10:02 PM
#3
Thread Starter
Addicted Member
Hmm.. that really doesn't help much by looking at that. Well it does kinda.. is there a chart or anything that shows what character each number equals? I've searched but havent found anything.
-
Nov 20th, 2000, 07:09 AM
#4
Frenzied Member
As Sam Finch sad it is a figure(the letters TBH). Try this code:
[code]
#include <iostream.h>
int main(int argc, char* argv[])
{
unsigned char Ascii[187] = {
201,176,177,178,219,219,219,219,219,
176,177,178,219,219,219,219,219,176,
177,178,219,219,178,219,219,205,205,
187, 10,186, 32, 32,176,177,178,219,
32, 32,176,177,178,219,219,178,219,
219,176,177,178,219,219,178,219,219,
32, 32,186, 10,186, 32, 32,176,177,
178,219, 32, 32,176,177,178,219,219,
219,219,219,176,177,178,219,219,219,
219,219, 32, 32,186, 10,186, 32, 32,
176,177,178,219, 32, 32,176,177,178,
219,219,178,219,219,176,177,178,219,
219,178,219,219, 32, 32,186, 10,186,
32, 32,176,177,178,219, 32, 32,176,
177,178,219,219,219,219,219,176,177,
178,219,219,178,219,219, 32, 32,186,
10,200,205,205,205,205,205,205,205,
205,205,205,205,205,205,205,205,205,
205,205,205,205,205,205,205,205,205,
205,188, 10, 10, 201, 36, 45};
for(int c=0;i<188;i++)
cout<<Ascii[c];
return 0;
}
-
Nov 20th, 2000, 11:30 AM
#5
Thread Starter
Addicted Member
I'm getting a compile error "i , undeclared identifier"
any ideas?
-
Nov 20th, 2000, 11:35 AM
#6
Frenzied Member
it's here
for(int c=0;i<188;i++)
should be
for(int c=0;c<188;c++)
-
Nov 20th, 2000, 11:37 AM
#7
Thread Starter
Addicted Member
Nevermind I got it to compile.. but for some reason it only loops the first character on my screen. any help is appreciated.
-
Nov 20th, 2000, 09:00 PM
#8
New Member
???
If you simply want to know what each number represents open a dos window then press control-alt and type in the relevant ascii number. When you let go of all 3 keys the corresponding ascii symbol will appear. Hope this helps.
-
Nov 20th, 2000, 09:53 PM
#9
Frenzied Member
This code works fine for me. (Vlatko's code with errors corrected)
Code:
#include <iostream.h>
int main(int argc, char* argv[])
{
unsigned char Ascii[187] = {
201,176,177,178,219,219,219,219,219,
176,177,178,219,219,219,219,219,176,
177,178,219,219,178,219,219,205,205,
187, 10,186, 32, 32,176,177,178,219,
32, 32,176,177,178,219,219,178,219,
219,176,177,178,219,219,178,219,219,
32, 32,186, 10,186, 32, 32,176,177,
178,219, 32, 32,176,177,178,219,219,
219,219,219,176,177,178,219,219,219,
219,219, 32, 32,186, 10,186, 32, 32,
176,177,178,219, 32, 32,176,177,178,
219,219,178,219,219,176,177,178,219,
219,178,219,219, 32, 32,186, 10,186,
32, 32,176,177,178,219, 32, 32,176,
177,178,219,219,219,219,219,176,177,
178,219,219,178,219,219, 32, 32,186,
10,200,205,205,205,205,205,205,205,
205,205,205,205,205,205,205,205,205,
205,205,205,205,205,205,205,205,205,
205,188, 10, 10, 201, 36, 45};
for(int c=0;c<188;c++)
cout<<Ascii[c];
return 0;
}
(Hmm, looks like Vlatko forgot to close his code tag)
Harry.
"From one thing, know ten thousand things."
-
Nov 21st, 2000, 07:43 AM
#10
Frenzied Member
Yes you are right i forgot to close the code tag. About the errors in the code. I first used cout<<Ascii[i] but that was making everything italic(as you can see now haha) and that is why i changed i to c but forgot to change every apperance of c. Never mind that the code works.
-
Nov 21st, 2000, 03:14 PM
#11
Monday Morning Lunatic
Maybe we could get John to disable things like that in [code][/code] tags.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|