programming
#11
#12
#13
Re: programming
Originally Posted by Kyle
#include <stdio.h>
int main(void)
{
char s[40];
printf("all your base are belong to us\n")
printf("Input what to take off all of: ");
scanf("%s",s);
if (strcmp(s,"zig")==0)
printf("correct\n");
else
printf("you suck\n");
return(0);
}
int main(void)
{
char s[40];
printf("all your base are belong to us\n")
printf("Input what to take off all of: ");
scanf("%s",s);
if (strcmp(s,"zig")==0)
printf("correct\n");
else
printf("you suck\n");
return(0);
}
666.c: line 2: syntax error near unexpected token `('
666.c: line 2: `int main(void)'
peter@linux:~/Desktop>
#14
Re: programming
Originally Posted by kain
Originally Posted by Kyle
#include <stdio.h>
int main(void)
{
char s[40];
printf("all your base are belong to us\n")
printf("Input what to take off all of: ");
scanf("%s",s);
if (strcmp(s,"zig")==0)
printf("correct\n");
else
printf("you suck\n");
return(0);
}
int main(void)
{
char s[40];
printf("all your base are belong to us\n")
printf("Input what to take off all of: ");
scanf("%s",s);
if (strcmp(s,"zig")==0)
printf("correct\n");
else
printf("you suck\n");
return(0);
}
666.c: line 2: syntax error near unexpected token `('
666.c: line 2: `int main(void)'
peter@linux:~/Desktop>
#15
Re: programming
int m=754974721,N,t[1<<24],a,*p,i,e=30295789,j,s,b,c,U;f(d){for(s=1<<23;s;s/=2,d=
d*1LL*d%m)if(s<N)for(p=t;p<t+N;p+=s)for(i=s,c=1;i; i--)b=*p+p,p=(m+*p-p)
*1LL*c%m,*p++=b%m,c=c*1LL*d%m;for(j=0;i<N-1{for(s=N/2;!((j^=s)&s);s/=2);if(++i
<j)a=t[i],t[i]=t[j],t[j]=a;}}main(){*t=2;U=N=1;while(e/=2){N*=2;U=U*1LL*(m+1)/2%
m;f(362);for(p=t;p<t+N*p++=*p*1LL**p%m*U%m;f(415 027540);for(a=0,p=t;p<t+Na+=
*p<<(e&1),*p++=a%10,a/=10;}while(!*--p);t[0]--;while(p>=t)printf("%d",*p--);}
see if your computer likes that one. lol.
randome, please explain, its clearly there.
oo now i see it. damn you.
d*1LL*d%m)if(s<N)for(p=t;p<t+N;p+=s)for(i=s,c=1;i; i--)b=*p+p,p=(m+*p-p)
*1LL*c%m,*p++=b%m,c=c*1LL*d%m;for(j=0;i<N-1{for(s=N/2;!((j^=s)&s);s/=2);if(++i
<j)a=t[i],t[i]=t[j],t[j]=a;}}main(){*t=2;U=N=1;while(e/=2){N*=2;U=U*1LL*(m+1)/2%
m;f(362);for(p=t;p<t+N*p++=*p*1LL**p%m*U%m;f(415 027540);for(a=0,p=t;p<t+Na+=
*p<<(e&1),*p++=a%10,a/=10;}while(!*--p);t[0]--;while(p>=t)printf("%d",*p--);}
see if your computer likes that one. lol.
randome, please explain, its clearly there.
oo now i see it. damn you.
#16
Re: programming
peter@linux:~/Desktop> gcc -o allyourbase ayb.c
peter@linux:~/Desktop> ./allyourbase
all your base are belong to us
Input what to take off all of: lol
you suck
peter@linux:~/Desktop> ./allyourbase
all your base are belong to us
Input what to take off all of: your such a dumbass!!
you suck
peter@linux:~/Desktop>
peter@linux:~/Desktop> ./allyourbase
all your base are belong to us
Input what to take off all of: lol
you suck
peter@linux:~/Desktop> ./allyourbase
all your base are belong to us
Input what to take off all of: your such a dumbass!!
you suck
peter@linux:~/Desktop>
#17
Re: programming
i hate c
#include <stdio.h>
int main(void){
char ans[80];
printf("Kain is a pimp? [y/n] ");
scanf("%s", ans);
if(strcmp(ans, "y") == 0){
printf("\nVery smart you are\n");
}
else{
printf("\nLuke i am your father.\n");
}
return 0;
}
#include <stdio.h>
int main(void){
char ans[80];
printf("Kain is a pimp? [y/n] ");
scanf("%s", ans);
if(strcmp(ans, "y") == 0){
printf("\nVery smart you are\n");
}
else{
printf("\nLuke i am your father.\n");
}
return 0;
}
#19
Re: programming
basic owns
DIM kain$
CLS
INPUT "Is Kain a pimp [y/n] ", kain$
SELECT CASE kain$
CASE "y":
PRINT "You are a bionic nerd, made from parts of lesser nerds."
CASE ELSE:
PRINT "How do you explain HMT to your invisible gf?"
END SELECT
END
DIM kain$
CLS
INPUT "Is Kain a pimp [y/n] ", kain$
SELECT CASE kain$
CASE "y":
PRINT "You are a bionic nerd, made from parts of lesser nerds."
CASE ELSE:
PRINT "How do you explain HMT to your invisible gf?"
END SELECT
END