Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 30

Thread: Programming Anyone?

  1. #11
    The real coding is in c, and c++ IMO.
    Nah, assembler all the way

  2. Everything Related to the Board   -   #12
    shn's Avatar Ð3ƒμ|\|(7
    Join Date
    May 2003
    Posts
    3,568
    Originally posted by Error403@22 April 2004 - 00:53
    The real coding is in c, and c++ IMO.
    Nah, assembler all the way
    Assembly?

    Go for it.

  3. Everything Related to the Board   -   #13
    BANNED
    Join Date
    Mar 2003
    Posts
    3,946
    Originally posted by Error403@22 April 2004 - 06:53
    The real coding is in c, and c++ IMO.
    Nah, assembler all the way
    feelin ok m8....

    cos i aint.Whooping headache....terrible m8..honestly

  4. Everything Related to the Board   -   #14
    Perry
    Guest
    when u try andf connect to kazaa lite why does it say pleaser verify email adress?????like where do u verify it

  5. Everything Related to the Board   -   #15
    thewizeard's Avatar re-member BT Rep: +1
    Join Date
    Jun 2003
    Location
    The Netherlands
    Posts
    6,354
    It's a little off-topic, but go to the email address you registered with, you should find a message from this board, then click on the link....

  6. Everything Related to the Board   -   #16
    vivitron 15's Avatar Poster
    Join Date
    Jan 2003
    Location
    North East England, UK
    Posts
    1,741
    i cant believe noone else picked up on how many posts this person has before requesting worlds... a member in disguise perhaps mods?
    <insert signature here>

  7. Everything Related to the Board   -   #17
    Poster
    Join Date
    May 2003
    Location
    North-east england UK
    Posts
    2,657
    Originally posted by vivitron 15@22 April 2004 - 15:55
    i cant believe noone else picked up on how many posts this person has before requesting worlds... a member in disguise perhaps mods?
    proberly, it isn&#39;t that much of a bad idea though

  8. Everything Related to the Board   -   #18
    yea, i knew some ppl in this forum would like the idea of a programming board. im sure some pretty good apps could be made. i know i have only made a couple of posts but ideas are ideas, thought i should share. what is the most popular programming language that u lot use by the way?

    i know java and visual basic and some assembly language. made an encryption/decryption program with assembly language before, based on the vignere cypher (not hard trust me, only about a page of code) but that was a university assignment.

    anyway...back to the exam revision..,
    I always tell the truth. Even when I lie.

  9. Everything Related to the Board   -   #19
    h1
    Guest
    Very few people here code.

    Here&#39;s a little "encryption" prog I just made BTW...
    Code:
    #include &#60;stdio.h&#62;
    #include &#60;sys&#092;stat.h&#62; &nbsp;// fucking slashes just HAVE to go the wrong way
    #include &#60;sys&#092;types.h&#62;
    #include &#60;fcntl.h&#62;
    // #include &#60;unistd.h&#62; // dos doesn&#39;t use this shit
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// uncomment all the includes below this if not dos
    #include &#60;io.h&#62;
    #include &#60;string.h&#62;
    #include &#60;stdlib.h&#62;
    #define DEBUG 0
    #define VERSION &#34;1.0&#34;
    int dc&#40;char *opt,char *ifile,char *ofile,int rwsize,int keys,char *keystr&#41;;
    int main&#40;int argc,char *argv&#91;&#93;&#41;
    {
     &nbsp; int status;
     &nbsp; int keys;
     &nbsp; printf&#40;&#34;This is haxor41789&#39;s crappy little encryption program v%s &#40;3/19/01&#41;.&#092;n&#092;n&#34;,VERSION&#41;;
     &nbsp; if&#40;argc&#33;=6&#41;
     &nbsp; {
     &nbsp; &nbsp; &nbsp;printf&#40;&#34;Usage&#58; %s &#91;e|d&#93; infile outfile rwsize key-string&#092;n&#34;,argv&#91;0&#93;&#41;;
     &nbsp; &nbsp; &nbsp;return -1;
     &nbsp; }
     &nbsp; keys=&#40;&#40;strlen&#40;argv&#91;5&#93;&#41;+1&#41;/4&#41;;
     &nbsp; if&#40;keys&#62;5000&#41;
     &nbsp; {
     &nbsp; &nbsp; &nbsp;printf&#40;&#34;More than 5000 keys are unsupported in the DOS version... how surprising.&#092;n&#34;&#41;;
     &nbsp; &nbsp; &nbsp;return -5;
     &nbsp; }
     &nbsp; if&#40;DEBUG==1&#41;
     &nbsp; {
     &nbsp; &nbsp; &nbsp;printf&#40;&#34;Keys found&#58; %i&#092;n&#34;,keys&#41;;
     &nbsp; }
     &nbsp; if&#40;atoi&#40;argv&#91;4&#93;&#41;&#60;2&#41;
     &nbsp; {
     &nbsp; &nbsp; &nbsp;printf&#40;&#34;Warning&#58; rwsize too small, setting to minimum of 2 bytes.&#092;n&#34;&#41;;
     &nbsp; &nbsp; &nbsp;strcpy&#40;argv&#91;4&#93;,&#34;2&#34;&#41;;
     &nbsp; }
     &nbsp; else if&#40;atoi&#40;argv&#91;4&#93;&#41;&#62;1024&#41;
     &nbsp; {
     &nbsp; &nbsp; &nbsp;printf&#40;&#34;rwsizes of greater than 1024 bytes are unsupported in the DOS version, setting to max of 1024.&#092;n&#34;&#41;;
     &nbsp; &nbsp; &nbsp;strcpy&#40;argv&#91;4&#93;,&#34;1024&#34;&#41;;
     &nbsp; &nbsp; &nbsp;printf&#40;&#34;Attempting to encode %s with %i keys...&#092;n&#34;,argv&#91;2&#93;,keys&#41;;
     &nbsp; &nbsp; &nbsp;status=dc&#40;argv&#91;1&#93;,argv&#91;2&#93;,argv&#91;3&#93;,atoi&#40;argv&#91;4&#93;&#41;,keys,argv&#91;5&#93;&#41;;
     &nbsp; &nbsp; &nbsp;if&#40;status == 0&#41;
     &nbsp; &nbsp; &nbsp;{
     &nbsp; &nbsp; &nbsp; &nbsp; printf&#40;&#34;&#91;%s&#93; %s-&#62;%s &#91;ok&#93;&#092;n&#34;,argv&#91;1&#93;,argv&#91;2&#93;,argv&#91;3&#93;&#41;;
     &nbsp; &nbsp; &nbsp; &nbsp; return 0;
     &nbsp; &nbsp; &nbsp;}
     &nbsp; &nbsp; &nbsp;else if&#40;status==-2&#41;
     &nbsp; &nbsp; &nbsp;{
     &nbsp; &nbsp; &nbsp; &nbsp; printf&#40;&#34;Can&#39;t open infile %s.&#092;n&#34;,argv&#91;2&#93;&#41;;
     &nbsp; &nbsp; &nbsp; &nbsp; return -2;
     &nbsp; &nbsp; &nbsp;}
     &nbsp; &nbsp; &nbsp;else if&#40;status==-3&#41;
     &nbsp; &nbsp; &nbsp;{
     &nbsp; &nbsp; &nbsp; &nbsp; printf&#40;&#34;Can&#39;t open outfile %s.&#092;n&#34;,argv&#91;3&#93;&#41;;
     &nbsp; &nbsp; &nbsp; &nbsp; return -3;
     &nbsp; &nbsp; &nbsp;}
     &nbsp; &nbsp; &nbsp;else
     &nbsp; &nbsp; &nbsp;{
     &nbsp; &nbsp; &nbsp; &nbsp; printf&#40;&#34;Unknown error code, exiting.&#092;n&#34;&#41;;
     &nbsp; &nbsp; &nbsp; &nbsp; return -4;
     &nbsp; &nbsp; &nbsp;}
    }
    int dc&#40;char *opt,char *ifile,char *ofile,int rwsize,int keys,char *keystr&#41;
    {
     &nbsp; char *keyptr;
     &nbsp; int k,x,i=1,fiptr,foptr;
     &nbsp; char indata&#91;1024&#93;,outdata&#91;1024&#93;;
     &nbsp; int key_array&#91;5000&#93;,rrs=rwsize-1;
     &nbsp; unsigned char c;
     &nbsp; if&#40;DEBUG==1&#41;
     &nbsp; {
     &nbsp; &nbsp; &nbsp;printf&#40;&#34;RRS&#58; %i&#092;n&#34;,rrs&#41;;
     &nbsp; }
     &nbsp; fiptr=_open&#40;ifile,_O_RDONLY|_O_BINARY&#41;;
     &nbsp; if&#40;fiptr==-1&#41;
     &nbsp; {
     &nbsp; &nbsp; &nbsp;return -2;
     &nbsp; }
     &nbsp; foptr=_open&#40;ofile,_O_CREAT|_O_WRONLY|_O_BINARY,_S_IWRITE&#41;;
     &nbsp; if&#40;foptr==-1&#41;
     &nbsp; {
     &nbsp; &nbsp; &nbsp;return -3;
     &nbsp; }
     &nbsp; keyptr=strtok&#40;keystr,&#34;-&#34;&#41;;
     &nbsp; for&#40;k=0;k&#60;keys;k++&#41;
     &nbsp; {
     &nbsp; &nbsp; &nbsp;key_array&#91;k&#93;=atoi&#40;keyptr&#41;;
     &nbsp; &nbsp; &nbsp;if&#40;DEBUG==1&#41;
     &nbsp; &nbsp; &nbsp;{
     &nbsp; &nbsp; &nbsp; &nbsp; printf&#40;&#34;Assigning %i to key_array&#91;%i&#93;&#092;n&#34;,key_array&#91;k&#93;,k&#41;;
     &nbsp; &nbsp; &nbsp;}
     &nbsp; &nbsp; &nbsp;keyptr=strtok&#40;NULL,&#34;-&#34;&#41;;
     &nbsp; }
     &nbsp; k=0;
     &nbsp; while&#40;i&#41;
     &nbsp; {
     &nbsp; &nbsp; &nbsp;memset&#40;indata,0,rwsize&#41;;
     &nbsp; &nbsp; &nbsp;memset&#40;outdata,0,rwsize&#41;;
     &nbsp; &nbsp; &nbsp;i=_read&#40;fiptr,indata,rrs&#41;;
     &nbsp; &nbsp; &nbsp;if&#40;i==0&#41;
     &nbsp; &nbsp; &nbsp;{
     &nbsp; &nbsp; &nbsp; &nbsp; break;
     &nbsp; &nbsp; &nbsp;}
     &nbsp; &nbsp; &nbsp;indata&#91;i+1&#93;=&#39;&#092;0&#39;;
     &nbsp; &nbsp; &nbsp;if&#40;DEBUG==1&#41;
     &nbsp; &nbsp; &nbsp;{
     &nbsp; &nbsp; &nbsp; &nbsp; printf&#40;&#34;Read %i bytes&#092;n&#34;,i&#41;;
     &nbsp; &nbsp; &nbsp;}
     &nbsp; &nbsp; &nbsp;if&#40;DEBUG==1&#41;
     &nbsp; &nbsp; &nbsp;{
     &nbsp; &nbsp; &nbsp; &nbsp; printf&#40;&#34;Indata&#58; %s&#092;n&#34;,indata&#41;;
     &nbsp; &nbsp; &nbsp;}
     &nbsp; &nbsp; &nbsp;for&#40;x=0;x&#60;i;x++&#41;
     &nbsp; &nbsp; &nbsp;{
     &nbsp; &nbsp; &nbsp; &nbsp; c=indata&#91;x&#93;;
     &nbsp; &nbsp; &nbsp; &nbsp; if&#40;strncmp&#40;opt,&#34;e&#34;,1&#41;==0&#41;
     &nbsp; &nbsp; &nbsp; &nbsp; {
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if&#40;k&#62;keys-1&#41;
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; k=0;
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if&#40;DEBUG==1&#41;
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; printf&#40;&#34;ENC&#40;B&#41;&#58; c=%i k=%i&#092;n&#34;,c,k&#41;;
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;c+=key_array&#91;k&#93;;
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if&#40;DEBUG==1&#41;
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; printf&#40;&#34;ENC&#40;A&#41;&#58; c=%i k=%i key_array&#91;%i&#93; = %i&#092;n&#34;,c,k,k,key_array&#91;k&#93;&#41;;
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;k++; 
     &nbsp; &nbsp; &nbsp; &nbsp; }
     &nbsp; &nbsp; &nbsp; &nbsp; else if&#40;strncmp&#40;opt,&#34;d&#34;,1&#41;==0&#41;
     &nbsp; &nbsp; &nbsp; &nbsp; { 
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if&#40;k&#62;keys-1&#41;
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; k=0;
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if&#40;DEBUG==1&#41;
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; printf&#40;&#34;DEC&#40;B&#41;&#58; c=%i k=%i&#092;n&#34;,c,k&#41;;
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;c-=key_array&#91;k&#93;;
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if&#40;DEBUG==1&#41;
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; printf&#40;&#34;DEC&#40;A&#41;&#58; c=%i k=%i key_array&#91;%i&#93; = %i&#092;n&#34;,c,k,k,key_array&#91;k&#93;&#41;;
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;k++;
     &nbsp; &nbsp; &nbsp; &nbsp; }
     &nbsp; &nbsp; &nbsp; &nbsp; outdata&#91;x&#93;=c;
     &nbsp; &nbsp; &nbsp; &nbsp; if&#40;DEBUG==1&#41;
     &nbsp; &nbsp; &nbsp; &nbsp; {
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;printf&#40;&#34;Outdata&#58; %s&#092;n&#34;,outdata&#41;;
     &nbsp; &nbsp; &nbsp; &nbsp; }
     &nbsp; &nbsp; &nbsp;}
     &nbsp; &nbsp; &nbsp;_write&#40;foptr,outdata,i&#41;;
     &nbsp; }
     &nbsp; _close&#40;fiptr&#41;;
     &nbsp; _close&#40;foptr&#41;;
     &nbsp; return 0;
    }

  10. Everything Related to the Board   -   #20
    Out of The Ordinary
    Join Date
    Feb 2003
    Posts
    3,927
    Or did You just copy the code from here or here btw look @ the date 11/1/98

    Fancy explain?

    EDIT: pwned

    BOT

Page 2 of 3 FirstFirst 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •