A quick question
#1
Posted 18 March 2003 - 06:11 PM
------------------
"This programming language has the power of BASIC, the readability of Perl, the simplicity and ease of use of Assembly language, and all the efficiency of ADA! Why, it's as reliable as Microsoft Windows!" - Glowing software review from another dimension.
Where do you want to [url="http://"http://www.macclassics.com/cythera/tricks/rJade.htm"]teleport[/url] today?
www.magnatune.com - Magnatune: Internet record label. Wide selection of music in MP3, flac, ogg: no DRM. Legal. Artists get 50% of your money.
#2
Posted 18 March 2003 - 06:23 PM
Quote
who here 'gets' it? We'll assume Slayer would, but he's not here.
I think we can also safely assume he'd lock this topic.
------------------
Siena College- Like Yale, only not!
"Anything is possible, except skiing through a revolving door."
#3
Posted 19 March 2003 - 12:50 AM
------------------
"There is a time and a place for everything."
*Unless it's Avatara, of course."
-- From the memoirs of Sundered Angel
#4
Posted 19 March 2003 - 01:22 AM
------------------
Do not hurt when holding is enough, do not wound when hurting is enough, do not maim when wounding is enough, do not kill when maiming is enough. The greatest warrior is he who does not need to kill.
"Haul your ass, Harry, but haul it slowly, or you'll sink the damn boat." -George Washington
Barbarian Films
#5
Posted 19 March 2003 - 09:27 AM
------------------
"This programming language has the power of BASIC, the readability of Perl, the simplicity and ease of use of Assembly language, and all the efficiency of ADA! Why, it's as reliable as Microsoft Windows!" - Glowing software review from another dimension.
Where do you want to [url="http://"http://www.macclassics.com/cythera/tricks/rJade.htm"]teleport[/url] today?
www.magnatune.com - Magnatune: Internet record label. Wide selection of music in MP3, flac, ogg: no DRM. Legal. Artists get 50% of your money.
#6
Posted 19 March 2003 - 09:15 PM
However, yes, your sig is fairly clear. Even the the person reading it had little or no knowedge of the programming languages stated in it, the "Windows" comment should make it understandable.
------------------
Siena College- Like Yale, only not!
"Anything is possible, except skiing through a revolving door."
#7
Posted 05 April 2003 - 07:29 PM
Quote
Sometimes sigs are better when not totally understood.
Well then... take a whack at this... (See below)
------------------
#include <stdio.h>
main(void){char a[22] = {0x4a,0x75,0x73,0x74,' ',0x61,0x6e,0x6f,0x74,0x68,0x65,0x72,' ',0x43,' ',0x68,0x61,0x63,0x6b};int b;for (b = 0;b < 23;printf("%c",a[b]),b++){};printf("...n");}
/* Not just for perl. */
www.magnatune.com - Magnatune: Internet record label. Wide selection of music in MP3, flac, ogg: no DRM. Legal. Artists get 50% of your money.
#8
Posted 05 April 2003 - 10:04 PM
Well then... take a whack at this... (See below)
------------------
Siena College- Like Yale, only not!
"Anything is possible, except skiing through a revolving door."
#9
Posted 05 April 2003 - 11:47 PM
Quote
Um...ph33r.
[/B]
It is a rather obfuscated (But not the most obfuscated, mind. (There are some that are much worse) ) bit of C code. It outputs some text ('Just another C hack', (Which refers to me (In the sense of one who is not good at something.), not the program.(Although it could be considered a hack. (But not a very good one.)) to be exact.) when you compile and run it. And I have a strange desire to learn LISP... (Where did that come from?)
------------------
#include <stdio.h>
main(void){char a[22] = {0x4a,0x75,0x73,0x74,' ',0x61,0x6e,0x6f,0x74,0x68,0x65,0x72,' ',0x43,' ',0x68,0x61,0x63,0x6b};int b;for (b = 0;b < 23;printf("%c",a[b]),b++){};printf("...n");}
/* Not just for perl. */
www.magnatune.com - Magnatune: Internet record label. Wide selection of music in MP3, flac, ogg: no DRM. Legal. Artists get 50% of your money.
#10
Posted 05 April 2003 - 11:53 PM
Quote
<snip>
Wow. You can make char arrays. Now come over here so I can slap you.
------------------
A tomb now suffices for him for whom the world was not enough.
#11
Posted 06 April 2003 - 12:22 AM
Quote
Wow. You can make char arrays.
Is that sarcasm? And is it directed towards me or C?
Nice to see you here.
------------------
#include <stdio.h>
main(void){char a[22] = {0x4a,0x75,0x73,0x74,' ',0x61,0x6e,0x6f,0x74,0x68,0x65,0x72,' ',0x43,' ',0x68,0x61,0x63,0x6b};int b;for (b = 0;b < 23;printf("%c",a[b]),b++){};printf("...n");}
/* Not just for perl. */
www.magnatune.com - Magnatune: Internet record label. Wide selection of music in MP3, flac, ogg: no DRM. Legal. Artists get 50% of your money.
#12
Posted 06 April 2003 - 12:30 AM
------------------
Slayer's guide to Cythera:
[url="http://"http://www.macclassics.com/cythera/cythera.htm"]http://www.macclassi...era/cythera.htm[/url]
http://russell.stanb...ide/cythera.htm
#13
Posted 06 April 2003 - 12:56 AM
Quote
T<snip>
Um, how come it worked when I wrote it?
Did the UBB sig thing mess something in it up?
[edit] at any rate its weirdnesses are kinda appropriate for what the program says about its author, so I don't think I'll change it...
------------------
#include <stdio.h>
main(void){char a[22] = {0x4a,0x75,0x73,0x74,' ',0x61,0x6e,0x6f,0x74,0x68,0x65,0x72,' ',0x43,' ',0x68,0x61,0x63,0x6b};int b;for (b = 0;b < 23;printf("%c",a[b]),b++){};printf("...n");}
/* Not just for perl. */
[This message has been edited by Bryce (edited 04-06-2003).]
www.magnatune.com - Magnatune: Internet record label. Wide selection of music in MP3, flac, ogg: no DRM. Legal. Artists get 50% of your money.
#14
Posted 06 April 2003 - 01:33 AM
------------------
Slayer's guide to Cythera:
[url="http://"http://www.macclassics.com/cythera/cythera.htm"]http://www.macclassi...era/cythera.htm[/url]
http://russell.stanb...ide/cythera.htm
#15
Posted 06 April 2003 - 08:07 AM
Quote
for (b = 0;b < 23;printf("%c",a[b]),b++){};
Well, to start off with, the a[22] you end on gives you a problem; the max index is 21. Not only that, but a[19], a[20] and a[21] are undefined. Some compilers would give an error on both of these, and some are good enough to correct your idiocy.
------------------
A tomb now suffices for him for whom the world was not enough.
#16
Posted 06 April 2003 - 09:11 AM
Quote
<snip>
Ah, thanks. I forgot about the terminating character taking up a slot in the string.
One thing Celchu, for all your talents you've not been blessed with the virtues of tact or subtlety...
------------------
#include <stdio.h>
main(void){char a[22] = {0x4a,0x75,0x73,0x74,' ',0x61,0x6e,0x6f,0x74,0x68,0x65,0x72,' ',0x43,' ',0x68,0x61,0x63,0x6b};int b;for (b = 0;b < 23;printf("%c",a[b]),b++){};printf("...n");}
/* Not just for perl. */
www.magnatune.com - Magnatune: Internet record label. Wide selection of music in MP3, flac, ogg: no DRM. Legal. Artists get 50% of your money.
#17
Posted 06 April 2003 - 10:59 AM
Quote
One thing Celchu, for all your talents you've not been blessed with the virtues of tact or subtlety...
Now who does that remind me of... *cough* *cough*
------------------
Siena College- Like Yale, only not!
"Anything is possible, except skiing through a revolving door."
[This message has been edited by idiotSavant (edited 04-06-2003).]
#18
Posted 06 April 2003 - 11:09 AM
Quote
Now who does that remind me of... *cough* *cough*
[/B]
Give me one example.
------------------
#include <stdio.h>
main(void){char a[22] = {0x4a,0x75,0x73,0x74,' ',0x61,0x6e,0x6f,0x74,0x68,0x65,0x72,' ',0x43,' ',0x68,0x61,0x63,0x6b};int b;for (b = 0;b < 23;printf("%c",a[b]),b++){};printf("...n");}
/* Not just for perl. */
www.magnatune.com - Magnatune: Internet record label. Wide selection of music in MP3, flac, ogg: no DRM. Legal. Artists get 50% of your money.
#19
Posted 06 April 2003 - 12:50 PM
Quote
Give me one example.
*Odysseus looks innocent*
------------------
Siena College- Like Yale, only not!
"Anything is possible, except skiing through a revolving door."