Follow along with the video below to see how to install our site as a web app on your home screen.
Note: this_feature_currently_requires_accessing_site_using_safari
"!ek;dc i@bK'(q)-[w]*%n+r3#l,{}:\nuwloca-O;m .vpbks,fxntdCeghiry"
"@n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l,+,
"On the /first/second/third/fourth/fifth/sixth/seventh/eighth
int rlc; /*recrusive loop count */
main(t,_,a)
char *a;
{
rlc++;
printf("%d \n", rlc);
the second string of characters which contain the letters that actually print.
actually .. no .. :bonce:kurly said:and hasan is joking about 5[a]... i hope
kurly said:and hasan is joking about 5[a]... i hope
no, he's right. using the bracket notation is just a way of performing pointer arithmetic, so a = b[a] = *(a+b)hasan said:actually .. no ..
"@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;# ){nl]!/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' ')# }'+}##(!!/"
"On the /first/second/third/fourth/fifth/sixth/seventh/eighth/ninth/tenth/eleventh/twelvth/ 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.\\/"
"!ek;dc i@bK'(q)-[w]*%n+r3#l,{}:
\nuwloca-O;m .vpbks,fxntdCeghiry"
no, he's right. using the bracket notation is just a way of performing pointer arithmetic, so a = b[a] = *(a+b)
I'm not that stupid ..Edit: char *a, if you are new to pointers, is a, well.. pointer.
specifically, a pointer toa char, named a. a pointer is a variable that holds a memory address. the compiler needs to know the type of data being pointed at, that's the 'char' part. if you've used arrays in java/c++, they're pointers, they just cant be directed at any other address than the one they are initialized with.
main(int t,int _,char*a)
//char *a;
{
#include<stdio.h>
#include<windows.h>
int rlc; /*recrusive loop count */
main(t,_,a)
char *a;
{
/* sample letters and numbers taken from my loop counter thing */
/* e69838 */
/* .69852 */
/* g25463 */
/* a25328 */
/* d1726 */
/* h10847 */
rlc++;
// printf("%d \n", rlc);
/* notie I substract 1 from the numbers when checking */
if (rlc == 69837 || rlc == 69851 || rlc == 25462 || rlc == 25381 || rlc == 1725 || rlc == 10846)
{
printf("\n %d %c %c \n", a, *a, 31[a]);
system("PAUSE");
}
hasan said:lol, actually _ is just a char.
if (argv < 13)
#include<stdio.h>
main( int argc,int argv,char* env )
{
char string1[512] = "@n'+,#'/*s{}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;# ){nl]!\
/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' ')# }'+}##(!!/";
char string2[32] = "%s %d%d\n";
char string3[16] = "%s";
char string4[255] = "!ek;dc i@bK'(q)-[w]*%n+r3#l,{}:\nuwloca-O;m .vpbks,fxntdCeghiry";
int rc = 0;
if (argc > 1)
{
if (argc == 2)
{
rc = main( -26,0,env + 1) + env;
rc = main( -26, 1 - argv, rc );
rc = main( -26, -13,env + rc );
}
if (argc < argv)
rc = main( argc + 1,argv,env );
rc = main(-26,-27 + argc,env);
if (argc == 2 && argv < 13)
rc = main( 2,argv + 1,string2 );
}
else
{
if (argc < 0)
{
if (argc == -26)
rc = main( argv,argc,string1);
else
{
if (argc == -27)
{
if (argv == *env)
putchar(env[31]);
else
rc = main( -27,argv,env + 1 );
}
else
rc = main( (*env == '/') + argc,argv,env + 1 );
}
}
else
{
if (argc == 1)
rc = main( 2,2,string3 );
else //argc == 0
rc = *env == '/' || main( 0, main( -27, *env, string4 ),env + 1 );
}
}
return rc;
}
#include<stdio.h>
main( int argc,int argv,char* env ) {
char text[512] = "@n'+,#'/*s{}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;# ){nl]!\
/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' ')# }'+}##(!!/";
char format1[16] = "%s %d%d\n";
char format2[4] = "%s";
char key[64] = "!ek;dc i@bK'(q)-[w]*%n+r3#l,{}:\nuwloca-O;m .vpbks,fxntdCeghiry";
int rc = 0;
const int numDays = 13;
const int mysteriousOffset = 31;
const int recursionControl = -26; // being -2*numDays can't be coincidence
const int recursionControl2 = recursionControl - 1;
if (argc > 1) {
if (argc == 2) {
rc = main( recursionControl, 0, env + 1) + (int) env;
rc = main( recursionControl, 1 - argv, (char*) rc );
rc = main( recursionControl, -numDays, env + rc );
}
if (argc < argv)
rc = main( argc + 1, argv, env );
rc = main( recursionControl, recursionControl2 + argc, env );
if (argc == 2 && argv < numDays)
rc = main( 2, argv + 1, format1 );
}
else {
if (argc < 0) {
if (argc == recursionControl)
rc = main( argv, argc, text);
else {
if (argc == recursionControl2) {
if (argv == *env)
putchar(env[mysteriousOffset]);
else
rc = main( recursionControl2, argv, env + 1 );
}
else
rc = main( (*env == '/') + argc, argv, env + 1 );
}
}
else {
if (argc == 1)
rc = main( 2, 2, format2 );
else {
if (*env != '/') {
rc = main( recursionControl2, *env, key );
rc = main( 0, rc, env + 1 );
}
}
}
}
return rc;
}
"On the /first/second/third/fourth/fifth/sixth/seventh/eighth/n\
inth/tenth/eleventh/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 fr\
ench hens, /two turtle doves!and /a partridge in a pear tree.!!/"
cypher:
"!uwloca-O;m .vpbks,fxntdCeghiry\nuwloca-O;m .vpbks,fxntdCeghiry"
#include<stdio.h>
main( int argc,int argv,char* env ) {
char text[512] = "@n'+,#'/*s{}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;# ){nl]!\
/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' ')# }'+}##(!!/";
char format1[16] = "%s %d%d\n";
char format2[4] = "%s";
char key[64] = "!ek;dc i@bK'(q)-[w]*%n+r3#l,{}:\nuwloca-O;m .vpbks,fxntdCeghiry";
const int numDays = 13;
const int mysteriousOffset = 31;
const int recursionControl = -26; // being -2*numDays can't be coincidence
const int recursionControl2 = recursionControl - 1;
if (argc == 2)
{
main( recursionControl, 0, env + 1);
main( recursionControl, 1 - argv, (char*) 0);
main( recursionControl, -numDays, env);
}
if(argc > 1 && argc <= numDays)
{
if (argc < argv)
main( argc + 1, argv, env );
main( recursionControl, recursionControl2 + argc, env );
}
if (argc == 2 && argv < numDays)
main( 2, argv + 1, format1 );
if (argc == 1)
main( 2, 2, format2 );
if (argc ==0)
if (*env != '/')
{
main( recursionControl2, *env, key );
main( 0, 0, env + 1 );
}
if (argc == recursionControl)
main( argv, argc, text);
if (argc == recursionControl2)
{
if (argv == *env)
putchar(env[mysteriousOffset]);
else
main( recursionControl2, argv, env + 1 );
}
if (argc < 0 && argc != recursionControl && argc != recursionControl2)
main( (*env == '/') + argc, argv, env + 1 );
return 0;
}
Phisionary said:if anyone wants, this is a decoded version of the text string:Code:"On the /first/second/third/fourth/fifth/sixth/seventh/eighth/n\ inth/tenth/eleventh/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 fr\ ench hens, /two turtle doves!and /a partridge in a pear tree.!!/"
#include<stdio.h>
main( int argc,int argv,char* env ) {
char text[512] = "On the /first/second/third/fourth/fifth/sixth/seventh/eighth/n\
inth/tenth/eleventh/twelfth/ day of Christmas my true love gave to me\n\
/twelve drummers drumming, /eleven pipers piping, /ten lords a-leaping,\n\
/nine ladies dancing, /eight maids a-milking, /seven swans a-swimming,\n/\
six geese a-laying, /five gold rings;\n/four calling birds, /three fr\
ench hens, /two turtle doves\nand /a partridge in a pear tree.\n\n/";
const int numDays = 13;
const int recursionControl2 = -27;//recursionControl - 1;
//this replaces the first recusrive call -> which only serves the purpose
// of setting argc = argv = 2 (argc was only equal to 1 on the first pass through)
if(argc == 1)
argc = argv =2;
if (argc == 2)
{
main( 0, 0, text);
main( 1-argv, 0, text);
main( -numDays, 0, text);
}
if(argc > 1 && argc <= numDays)
{
if (argc < argv)
main( argc + 1, argv, env );
main(recursionControl2 + argc, 0, text );
}
if (argc == 2 && argv < numDays)
main( 2, argv + 1, 0 );
//this was formerly done by a recursively implemented loop
while (argc < 0)
{
while(*env++ != '/');
argc++;
}
//argc == 0 is the base (exit) condition for recursion
if (argc ==0)
while(*env != '/')
putchar(*env++);
//this was formerly done by a recursively implemented loop
return 0;
}
#include<stdio.h>
int count = 0;
main( int argc,int argv,char* env ) {
char text[512] = "On the /first/second/third/fourth/fifth/sixth/seventh/eighth/n\
inth/tenth/eleventh/twelfth/ day of Christmas my true love gave to me\n\
/twelve drummers drumming, /eleven pipers piping, /ten lords a-leaping,\n\
/nine ladies dancing, /eight maids a-milking, /seven swans a-swimming,\n/\
six geese a-laying, /five gold rings;\n/four calling birds, /three fr\
ench hens, /two turtle doves\nand /a partridge in a pear tree.\n\n/";
const int numDays = 13;
const int recursionControl2 = -27;//recursionControl - 1;
int x = 0;
//this replaces the first recusrive call -> which only serves the purpose
// of setting argc = argv = 2 (argc was only equal to 1 on the first pass through)
if(argc == 1)
argc = argv =2;
if (argc == 2)
{
main( 0, 0, text);
main( 1-argv, 0, text);
main( -numDays, 0, text);
}
if(argc > 1 && argc <= numDays)
for(x = argv; x >= argc; x--)
main(recursionControl2 + x, 0, text );
if (argc == 2 && argv < numDays)
main( 2, argv + 1, 0 );
//this was formerly done by a recursively implemented loop
while (argc < 0)
{
while(*env++ != '/');
argc++;
}
//argc == 0 is the base (exit) condition for recursion
if (argc ==0)
while(*env != '/')
putchar(*env++);
//this was formerly done by a recursively implemented loop
return 0;
}
while (argc < 0)
{
while(*env++ != '/');
argc++;
}
if (argc ==0)
while(*env != '/')
putchar(*env++);
if (argc == 2)
{
main( 0, 0, text);
main( 1-argv, 0, text);
main( -numDays, 0, text);
}
if (argc == 2 && argv < numDays)
main( 2, argv + 1, 0 );
if(argc > 1 && argc <= numDays)
for(x = argv; x >= argc; x--)
main(recursionControl2 + x, 0, text );
#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'+,#'/*[color=red]([/color]s[color=red])[/color]{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l[color=blue]([/color],[color=blue])[/color]+,/n\
{n+,/+#n+,/#[color=red]([/color] [color=red])[/color];#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;# ){nl]!\
/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(31[a]):
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);
}