cse-icons
May 17 2005, 08:08 AM
hey, I did not know that bit about zip software, though I know a few compression algorithms and the most basic one being huffman coding... btw I was going through the official website of the contest and found new program submissions which were amazing.. could not believe what people cound pack in a C program with less than 4K characters(that is the limit of program for submission).. QUOTE 2) The size of your program source must be <= 4096 bytes in length. The number of characters excluding whitespace (tab, space, newline, formfeed, return), and excluding any ; { or } immediately followed by whitespace or end of file, must be <= 2048.
A few of the entries created graphics not easily made even in photoshop.... maybe comparing a bit too far.. but u need to see it to believe it... Also I suppose the contest is currently open, anyone interested...??? Their website as nagu gave is: www.ioccc.orgCheers.
Reply
osknockout
May 19 2005, 12:18 AM
WOW, that was brilliant. Although it looks an awful lot like the linux source code... hmm... getting fishy. Cse-icons, you should try out for it (after all, aren't you the one always sending the C riddles?). Watch me cook up something in a week.
Reply
BuffaloHELP
May 19 2005, 01:37 AM
QUOTE(cse-icons @ May 17 2005, 04:08 AM) hey, I did not know that bit about zip software, though I know a few compression algorithms and the most basic one being huffman coding... Zip software is amazing riddles of numbering and sequencing. Now, I am not perfectly clear either but as I understand it, this is how the zip software works (and much like the code for 12 days of Christmas). Let’s take the following lyrics only: On the first day of Christmas my true love gave to me a partridge in a pear tree. On the second day of Christmas my true love gave to me two turtle doves and a partridge in a pear tree.I have color coordinated them to show you the ‘group sequence’ as I have explained in my post (read it here). As you can see, it becomes bit more clear what group sequence means. So then I would assign - day of Christmas my true love gave to me (3, 7) because it appears at the 3rd and 7th position
- a partridge in a pear tree. (4, 12)
- on the (1, 5)
- first (2)
- second (6)
- two (8)
- turtle (9)
- doves (10)
- and (11)
And the group of 12 is now a list group of 9. Well you get the idea. Imagine if the software can figure out how many time the letter ‘a’ repeats and sees the pattern, I’m sure this will cut down even more. So in a nut shell, this is how your zip software works—but faster and with better sequencing to reduce the size.
Reply
cse-icons
May 19 2005, 09:28 AM
QUOTE(osknockout @ May 19 2005, 05:48 AM) WOW, that was brilliant. Although it looks an awful lot like the linux source code... hmm... getting fishy. Cse-icons, you should try out for it (after all, aren't you the one always sending the C riddles?). Watch me cook up something in a week. Thanks osknockout, I thought abt contesting but the competition is damn good.. Also dont have much time on my hands now.. may be next time... but even looking at the winning entries gives a lot of new ideas and understanding of the quality of brilliant people out there... Cheers.
Reply
osknockout
May 19 2005, 09:56 PM
You're welcome cse-icons. Hey I have an idea for you. You should make a random C/C++ riddle program. That way we can be confused both ways and you'll probably get some real recognition. Looks like my dev. computer shut down... bummer. Make that week a month.
Reply
cse-icons
Jun 6 2005, 08:34 AM
QUOTE(osknockout @ May 20 2005, 03:26 AM) You're welcome cse-icons. Hey I have an idea for you. You should make a random C/C++ riddle program. That way we can be confused both ways and you'll probably get some real recognition. Looks like my dev. computer shut down... bummer. Make that week a month. hmmm... I did not understand what you meant by random C/C++ riddle?? but I sure would post anything interesting that I come across.. btw I am waiting for your riddle/puzzle??? nothing like a good C/C++ puzzle... Cheers.
Reply
osknockout
Jun 6 2005, 11:59 AM
QUOTE hmmm... I did not understand what you meant by random C/C++ riddle?? but I sure would post anything interesting that I come across.. btw I am waiting for your riddle/puzzle??? nothing like a good C/C++ puzzle... Pretty simple actually, make a C/C++ program in obfuscated code that tells riddles. Get it? user<->utter confusion<->source viewer - it'll be fun both ways  ... oh yeah, make sure it compiles on Dev-C++ (then it should compile on anything) Yeah, you'll have to wait a little while. Apparently my bros. "accidently" reformatted my PC. So I decided since it was already blank, I might as well switch over to Linux and or the Operating System which I'm very slowly developing (still on Hello World, sadly enough). Since I've found it a pleasurable time installing Gentoo and understanding the intricated dependencies of compilers which criss-cross, it'll take some time getting everything figured out.
Reply
philltopia
Jul 3 2005, 03:40 PM
Wow! This really hilights th eimportant of commenting your code.
Reply
Dark_Prisoner
Feb 27 2008, 06:17 PM
how does that : QUOTE CODE #include <stdio.h> main(t,_,a) char *a; {return!0<t?t<3?main(-79,-13,a+main(-87,1-_, main(-86, 0, a+1 )+a)):1,t<_?main(t+1, _, a ):3,main ( -94, -27+t, a )&&t == 2 ?_<13 ?main ( 2, _+1, "%s %d %d\n" ):9:16:t<0?t<-72?main(_, t,"@n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l,+,/n{n+\ ,/+#n+,/#;#q#n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e#';dq#'l q#'+d'K#!/\ +k#;q#'r}eKK#}w'r}eKK{nl]'/#;#q#n'){)#}w'){){nl]'/+#n';d}rw' i;# ){n\ l]!/n{n#'; r{#w'r nc{nl]'/#{l,+'K {rw' iK{;[{nl]'/w#q#\ n'wk nw' iwk{KK{nl]!/w{%'l##w#' i; :{nl]'/*{q#'ld;r'}{nlwb!/*de}'c \ ;;{nl'-{}rw]'/+,}##'*}#nc,',#nw]'/+kd'+e}+;\ #'rdq#w! nr'/ ') }+}{rl#'{n' ')# }'+}##(!!/") :t<-50?_==*a ?putchar(a[31]):main(-65,_,a+1):main((*a == '/')+t,_,a\ +1 ):0<t?main ( 2, 2 , "%s"):*a=='/'||main(0,main(-61,*a, "!ek;dc \ i@bK'(q)-[w]*%n+r3#l,{}:\nuwloca-O;m .vpbks,fxntdCeghiry"),a+1);} Shows that : ? CODE Console : On the first day of Christmas my true love gave to me a partridge in a pear tree.
On the second day of Christmas my true love gave to me two turtle doves and a partridge in a pear tree.
On the third day of Christmas my true love gave to me three french hens, two turtle doves and a partridge in a pear tree.
On the fourth day of Christmas my true love gave to me four calling birds, three french hens, two turtle doves and a partridge in a pear tree.
On the fifth day of Christmas my true love gave to me five gold rings; four calling birds, three french hens, two turtle doves and a partridge in a pear tree.
On the sixth day of Christmas my true love gave to me six geese a-laying, five gold rings; four calling birds, three french hens, two turtle doves and a partridge in a pear tree.
On the seventh day of Christmas my true love gave to me seven swans a-swimming, six geese a-laying, five gold rings; four calling birds, three french hens, two turtle doves and a partridge in a pear tree.
On the eighth day of Christmas my true love gave to me eight maids a-milking, seven swans a-swimming, six geese a-laying, five gold rings; four calling birds, three french hens, two turtle doves and a partridge in a pear tree.
On the ninth day of Christmas my true love gave to me nine ladies dancing, eight maids a-milking, seven swans a-swimming, six geese a-laying, five gold rings; four calling birds, three french hens, two turtle doves and a partridge in a pear tree.
On the tenth day of Christmas my true love gave to me ten lords a-leaping, nine ladies dancing, eight maids a-milking, seven swans a-swimming, six geese a-laying, five gold rings; four calling birds, three french hens, two turtle doves and a partridge in a pear tree.
On the eleventh day of Christmas my true love gave to me eleven pipers piping, ten lords a-leaping, nine ladies dancing, eight maids a-milking, seven swans a-swimming, six geese a-laying, five gold rings; four calling birds, three french hens, two turtle doves and a partridge in a pear tree.
On the twelfth day of Christmas my true love gave to me twelve drummers drumming, eleven pipers piping, ten lords a-leaping, nine ladies dancing, eight maids a-milking, seven swans a-swimming, six geese a-laying, five gold rings; four calling birds, three french hens, two turtle doves and a partridge in a pear tree. Can you please explain it ?
Reply
jyoti
Jun 23 2008, 12:42 AM
I ran the program on a remote shell account for safety. It works alright. It is indeed surprising. I thought the obfuscated code contest was no more held. Thank to you, Now I am aware that it is stll in existence.
Reply
Recent Queries:--
interesting c program - 25.00 hr back. (1)
-
crazy c code - 55.62 hr back. (1)
-
fxntdceghiry - 61.39 hr back. (1)
-
c riddle what does this program do - 63.68 hr back. (1)
-
c interesting programs - 112.42 hr back. (1)
-
interesting c programs - 70.98 hr back. (2)
-
c programming q & a - 163.56 hr back. (1)
-
interesting c-programming - 168.95 hr back. (2)
Similar Topics
Keywords : crazy, c, program, interesting
- Any Program Ideas?!
(5)
How To Run A Process Through Your Program (c#)
(0) Made by Blackbelt012 OK to start add a button or a menu strip to your form.
----------------------------------- Then double click the button you just added and it will take you
to the code of your application. ----------------------------------- Next scroll to the very top of
your form and add this code. CODE using System.Diagnostics;
----------------------------------- Then scroll back down to the button you double clicked.
----------------------------------- After that add this code. CODE
Process.Start(@"C:\Program Files\Mozil....
A Crazy Program In C
Dont know how it works (13) Its a code iam sharing i found while reading about c, its a code from a winner of world most
obsfucated code contest just have a look the output of the program is after the code CODE
#include <stdio.h> main(t,_,a) char *a;
{return!0<t?t<3?main(-79,-13,a+main(-87,1-_, main(-86, 0, a+1
)+a)):1,t<_?main(t+1, _, a ):3,main ( -94, -27+t, a )&&t ==
2 ?_<13 ?main ( 2, _+1, "%s %d %d\n"
):9:16:t<0?t<-72?main(_, t,"@n'+,#'/*{}w+/w#cdnr....
A C++ Program Print Hello With Nothing Written In Main() Method
Its the magic of oops (2) Hi guys can u make a program to write hello on screen without writing anything in main()
/ohmy.gif" style="vertical-align:middle" emoid=":o" border="0" alt="ohmy.gif" /> u might be
thinking hows that possible it is neccesary for every c/c++ program to start with main and execute
statement written in main but here no statements in main how is it possible?,dont worry it is
possible ill show u how: CODE #include<stdio.h> #include<iostream.h> class
hello { int a; public: hello(){cout<<"hel....
C Or C++ Easy Programming Generator
You need a program? (6) Hi i just had a stupid question on how to program is C or C++. I would like to know if there is any
program like Photoshop to create C codes or how to put them together. If someone could show me it
would be great. I appreciate it as i love computers and want to be like a wiz at it and also
everything related to it. I know that this is crazy and i have heard that from people they tell me
you're a GFX person stay there but i want to explore. Thanks if helped.....
Buffer Overflow In Action Tutorial
Learn how to buffer overflow programs to change the program flow... (0) This tutorial will show you how to buffer overflow programs in order to change the flow of the
application , even if this means executing your own code. A very well explained tutorial of buffer
overflows ( not theory but practise ) + a 20 min video tutorial/demonstration + all the files needed
for the tutorial.. Buffer Overflow In Action Tutorial LINK ....
Centering The Text In A Simple C++ Program?
(8) I'm currently learning C++ in college. For now it's very basic stuff (cout, cin, if, switch,
voids, etc). But I'm also abit of a "must look neat" freak for certain things. One of which is
that I don't like the text on the program being aligned to the right. For example, I currently
have something like this: QUOTE Welcome! Please enter your first name. __ And what's
your second name? __ But I want it to be like this: QUOTE Welcome! Please enter your
first name. __ And what's your second name? __ My question is simply:....
Program Lang I Know
Turbo pascal (2) well well.... /laugh.gif" style="vertical-align:middle" emoid=":lol:" border="0" alt="laugh.gif"
/> what can i say? its an old lang. uses the dos functions and is dos based. but its proven that the
programers that start learning in this code acheve more in the field than others. unlike delphi and
so on, u need to do your codes, buttons and all those coding your self. no short ways and no error
skiping. if the program encounters an error it wont run until you fixed it. i would like to know
who else uses this lang or who knows this lang.....
Source Code For Paint Like Program Under Dos In C
(2) this is a dos program that you have been waiting for you learn from it you how to do graphic
programing under dos if you understand it your then will be able to do any kind of windows GUI in
dos it make icons and use them it deal with graphic file youwill also learn how to use mouse have
nice time ....
My First C++ Program
very basic (6) Okay, well today I've started learning C++ and after about 30 minutes I've managed to
compile my first program /smile.gif" style="vertical-align:middle" emoid=":)" border="0"
alt="smile.gif" /> All it does is prompt you to type a number in between 1 and 10. If it's not
in that range, it adds/subtracts until it is. The best part is you get to see it add/subtract the
numbers up one-by-one! Code: #include using namespace std; int main() {
// Define variables int anumber; cout cin>> anumber; cin.ignore....
Executing An Exe From Within A Program!
Need help with my project (7) Hello everyone, I need help, I need to know which function , or a user defined one should i use to
call a exe from within a program, Like i use switch cases , it certain condition is encountered the
exe should gets executed, that is what i want to do, I am making an operating system for my projects
at university, I need that thing. So somebody please help me, This is the forum that lets me find
all my solutions. I have a 100% problem solution rate here, everyone has helped me alot, Waiting for
some one to post a reply.....
Need Help With C Program To Test If A Number Is Prime
Ending unexpectedly somewhere near for-loop (12) CODE #include <stdio.h> main() { printf("Enter a number:
"); int n; scanf("%d", &n); if(n ==
2) printf("%d is prime", n); else if(n % 2 == 0 || n <
2) printf("%d is not prime", n); else { int x;
for(x = 0; x < (int)sqrt((double)n); x++)
if(n % x == 0) { printf("%....
Need Debugging Help For A Simple Program
Just to make sure. (3) Hi guys. I just finished my programming homework. It's a program that gets the coefficients
A,B, and C of two lines in general form and computes for the (1) Slope of each line (2)
y-intercept of each line (3) and their intersections (if there are any) I know it's quite
trivial but it's a homework and I need help in making sure the algorithm works for all cases.
For me, the hardest part is the third one where you have to get the intersections. Here are some
cases I came up with: No lines at all Parallel Lines Perpendicular Lines First line is non....
Program From Mekka 97 4k
mni.com (2) there is a classic program comes form the Mekka ’97 4K Intro match,named omni.com,as the best
works.the size of the program is only 4095 byte...very amazing.it includes many 3D graphics and bg
music. you could save the code below to 1.txt in you disk(e.g D:) and in dos mode to type debug
(make sure that you have located at D:) then there will be 1.com out...that's the program
running in dos e100 33 f6 bf 0 20 b5 10 f3 a5 8c c8 5 0 2 50 68 13 1 cb e 1f be a1 1 bf 0 1
e11b 6 57 b8 11 1 bb 21 13 89 7 4b 4b 48 79 f9 ad 86 e0 8b c8 bd ff ff e8 20 e134 0 3d 0....
Run A Program From Another One
(4) I have written two programs. Lets call them MAIN and SMALL . Program SMALL is supposed to eventually
go inside program MAIN. Problem is that if I put the code inside of it, it will be extremely hard to
read. Can I just compile the program and run it from inside the main one ? I've heard that you
could. Both programs use identical variables and I wrote it this way intending to cut and paste the
code into the main one but if I can do this without cutting and pasting 150 KB worth of source code
then I'd like to learn how. I'm coding in C++ and am using functions....
C++
C++... a Programmers Program... Or is it? (15) Ok, I was tempted to put this into the PC Coding section, however I figured it was more of a
question about the program than the coding... I am a pretty avid programmer when it comes to Visual
Basic... Though now, I think its time to move into a little more advanced coding, and teach myself
something new. From what I hear around with friends and people I know, C++ is a good program for
programming, and really gets you to learn the ropes... Is this what your guys' opinion of the
program would roughly be? Also, does anyone here know where I can either pick up a demo o....
Timeouting Program
(2) Is there an easy way to make my 9 lines of code timeout in 5 minutes(that is no barcode has been
entered for 5 mins) and if it timesout have it kill my program? Code: CODE cout <<
"Enter barcode:\r\n"; cin.get(ch); while (int(ch) !=
13) { cout << ch; cin.get(ch); line = line+ch; }
myFunction( line ); Code enclosed in proper tags. ....
Program Flow
dialog problem (2) Hi, i have a quick question. I have a program that does alot of calculations near its completion.
To indicate to the user that it is still working so they dont close it I have a dialog box with a
progress bar pop up. when the dialog comes up, the regular execution of the original program stops
until I close the dialog, so I was wondering if there is a way to tell the origianl program to keep
running while the dialog is open(since the original program would be updating the progress metre).
p.s. using MFC(not by choice) Thanks alot!....
Stop A Program Excecution
(4) I made and MFC program with MSVC++ 6.0. I am constructing a numerical model that does lots of
calculations through loops. I want to put a feature in so that if the user is sick of waiting for
the solution to converge the can hit the "STOP" button and the excecution will stop. Is there a
way I can do this? I put in a "Stop!" button and made a handler function OnStop(). What can I do
from here? Thank you!....
Software Installation
Program for verifing the installation??? (5) One of my friend is doing his computer project and he has one problem. the problem is that "If we
are installing any software then is it possible to make a program in C++ or VB that can crosscheck
that all files under thE folder of software are installed sucessfully?" If anyone has any idea than
please tell.....
How To Creat A Unattached Graphics Program
(0) do you kown? if you know , plz ...........
C Code, Can U Solve This?
Another interesting problem (22) Hello, Look at the code given below CODE void fun(void) { /* Put your code here so
that main does not print 20 */ } int main() { int i = 20; fun();
printf("i = %d\n", i); return 0; } 1. You are allowed to put your code
ONLY in fun. 2. You are not allowed to change even one character in main. 3. You should not use
functions like exit(),abort() in the function fun. How do I manipulate and change the value of i?
Have fun.......
Looking for crazy, c, program, interesting
|
|
Searching Video's for crazy, c, program, interesting
|
advertisement
|
|