Jump to content
Eternal Lands Official Forums
Sign in to follow this  
scarr

Beam Me Up

Recommended Posts

ima totaly newb in scripting ,but who can teach me easly how to bind f12 to #beam me up ?

Share this post


Link to post
Share on other sites

in events.c after

    case SDL_KEYDOWN:
	 {
   key=(Uint16)event->key.keysym.sym;
   if(shift_on)key|=(1<<31);
   if(ctrl_on)key|=(1<<30);
   if(alt_on)key|=(1<<29);

add

if(event->key.keysym.sym == SDLK_F12)
     {
       my_tcp_send(my_socket, "\0#beam me up", 12);
       break;
     }

Share this post


Link to post
Share on other sites

maybe we should make a quiz that u have to solve if u want to use programming forum =D to keep those n00bs out. :)

Share this post


Link to post
Share on other sites
maybe we should make a quiz that u have to solve if u want to use programming forum =D to keep those n00bs out. :)

man he in guild i'm in what embassment to guild

Share this post


Link to post
Share on other sites
maybe we should make a quiz that u have to solve if u want to use programming forum =D to keep those n00bs out.  :)

yeh, i agree :)

 

BTW, i didn't know i can do this:

my_tcp_send(my_socket, "\0#beam me up", 12);

i have always used this part of code:

sprintf(input_text_line, "#beam me up_");
input_text_lenght = strlen(input_text_line)-1;
send_input_text_line();
input_text_line[0]=0;
input_text_lenght=0;

thx for lettin me know :)

Share this post


Link to post
Share on other sites
maybe we should make a quiz that u have to solve if u want to use programming forum =D to keep those n00bs out.  :P

yeh, i agree :)

 

BTW, i didn't know i can do this:

my_tcp_send(my_socket, "\0#beam me up", 12);

i have always used this part of code:

sprintf(input_text_line, "#beam me up_");
input_text_lenght = strlen(input_text_line)-1;
send_input_text_line();
input_text_line[0]=0;
input_text_lenght=0;

thx for lettin me know :)

That's a lot of extra processing :) there, Athosino

Share this post


Link to post
Share on other sites
maybe we should make a quiz that u have to solve if u want to use programming forum =D to keep those n00bs out.  :P

yeh, i agree :)

 

BTW, i didn't know i can do this:

my_tcp_send(my_socket, "\0#beam me up", 12);

i have always used this part of code:

sprintf(input_text_line, "#beam me up_");
input_text_lenght = strlen(input_text_line)-1;
send_input_text_line();
input_text_line[0]=0;
input_text_lenght=0;

thx for lettin me know :)

That's a lot of extra processing :) there, Athosino

Yes, you're obviously not a l33t programmer like the rest of us.

 

 

(ps. My version had a loop in it. :( )

Share this post


Link to post
Share on other sites
maybe we should make a quiz that u have to solve if u want to use programming forum =D to keep those n00bs out.  :)

Something like: What does this code do?

 

Sadez©
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#define gotoxy(x,y) printf("%c[%i;%iH",27,y,x);
#define aa(a,b) a>b?0:a<0?b:a
#define bbb rand()%3-1
                                             char   a [(1
                                             <<11   )-( 1
                                             <<7)    +8];
                                             b(c,    d) {
                                           putchar(a[c++ ]?
                                          79:32);d?(bbb&&bbb
                                          &&bbb&&bbb&&bbb &&
                                           bbb?a[c-1]=1:0):
                                             0;c<1920?b(c
                                               ,d):0;}
                                                 main  
    (cc) {cc=(1<<11)-(1<<7);     srand(time(0));b(0,1)
  ;while(1){gotoxy(0,0);b(0    ,0);a[cc]+=bbb; a[cc+1]
  +=bbb;a[cc]=aa(a[cc],79);a[  cc+1]= aa(a [cc+1],23);a[
 cc+6]=a[cc]-1;a[cc+7]=a[cc+1]-1;a[ cc+4]= a[cc]+ 1;a[cc+
5]=a[ cc+1]+1;a[cc+6 ]=aa(a[cc+6],79);a[ cc+4]=aa(a [ cc+
4] ,79);a [cc+7]=aa(a[ cc+7],23); a[cc+5]=aa(a[cc+5],23);a
 [cc+3]= a[a [cc+7]*80+a[cc+6]]+a[ a[cc+1]*80+a[cc+6]]+a[
  a[cc+5]*80+a[ cc+6]]+a[a[cc+7]*80+a[cc]]+a [a[cc+1]*80
  +a[cc]]+a[a[cc+5]*80+a[cc]]  +a[a[cc+7]* 80+a[cc+4]]+
   a[a[cc+1]*80+a[cc+4]]+a[a    [cc+5]*80+a[cc+4]];a[a
    [cc+1             ]*80+              a[cc]
    ]&&!a             [cc+2              ]&&a[
    cc+3]             <=2?a              [a[cc
    +1] *             80+a[              cc]]=
    0, a[             cc+2]              =1:!a
    [a[cc             +1] *              80+a[
cc]]&& a[cc+2] && a[cc+3]>2?a[a[cc+1]*80+a[cc]]=1,a[cc+2]=0:0;}}

Share this post


Link to post
Share on other sites

ack...that is realy hard to read....

 

I am still a beginner at c, but i woudl say that, that script displays the date and time someplace on the screen or somethign.... :D I'm probally wrong...i'm to lazy to acutally look though it...i jsut glanced at it realy quick...lol

 

EDIT: Did you actuallyt ry to compile that...LOL....

 

Compiler: Default compiler

Executing g++.exe...

g++.exe "C:\cprograms\something.cpp" -o "C:\cprograms\something.exe" -ansi -I"C:\Dev-Cpp\include\c++\3.3.1" -I"C:\Dev-Cpp\include\c++\3.3.1\mingw32" -I"C:\Dev-Cpp\include\c++\3.3.1\backward" -I"C:\Dev-Cpp\lib\gcc-lib\mingw32\3.3.1\include" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"

C:/cprograms/something.cpp:10: error: `c' was not declared in this scope

C:/cprograms/something.cpp:10: error: `d' was not declared in this scope

C:/cprograms/something.cpp:10: error: ISO C++ forbids declaration of `b' with

no type

 

C:/cprograms/something.cpp:10: error: initializer list being treated as

compound expression

 

C:/cprograms/something.cpp:10: error: syntax error before `{' token

C:/cprograms/something.cpp:12: error: syntax error before `?' token

C:/cprograms/something.cpp:16: error: `c' was not declared in this scope

C:/cprograms/something.cpp:16: error: `d' was not declared in this scope

C:/cprograms/something.cpp:16: error: `b' cannot be used as a function

C:/cprograms/something.cpp:16: error: syntax error before `;' token

C:/cprograms/something.cpp:18: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:18: error: ISO C++ forbids declaration of `main'

with no type

C:/cprograms/something.cpp:18: error: syntax error before `{' token

C:/cprograms/something.cpp:18: error: ISO C++ forbids declaration of `srand'

with no type

C:/cprograms/something.cpp:18: error: `int srand' redeclared as different kind

of symbol

C:/Dev-Cpp/include/stdlib.h:349: error: previous declaration of `void

srand(unsigned int)'

C:/cprograms/something.cpp:19: error: ISO C++ forbids declaration of `b' with

no type

C:/cprograms/something.cpp:19: error: redefinition of `int b'

C:/cprograms/something.cpp:10: error: `int b' previously defined here

C:/cprograms/something.cpp:19: error: initializer list being treated as

compound expression

C:/cprograms/something.cpp:19: error: syntax error before `while'

C:/cprograms/something.cpp:19: error: ISO C++ forbids declaration of `b' with

no type

 

C:/cprograms/something.cpp:19: error: redefinition of `int b'

C:/cprograms/something.cpp:19: error: `int b' previously defined here

C:/cprograms/something.cpp:19: error: initializer list being treated as

 

compound expression

C:/cprograms/something.cpp:19: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:19: error: syntax error before `+=' token

C:/cprograms/something.cpp:19: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:20: error: syntax error before `+=' token

C:/cprograms/something.cpp:20: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:20: error: ISO C++ forbids declaration of `a' with

no type

C:/cprograms/something.cpp:20: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:20: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:20: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:20: error: assignment (not initialization) in

declaration

C:/cprograms/something.cpp:20: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:20: error: ISO C++ forbids declaration of `a' with

no type

C:/cprograms/something.cpp:20: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:20: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:20: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:20: error: assignment (not initialization) in

 

declaration

 

C:/cprograms/something.cpp:21: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:21: error: ISO C++ forbids declaration of `a' with

no type

C:/cprograms/something.cpp:21: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:21: error: assignment (not initialization) in

declaration

C:/cprograms/something.cpp:21: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:21: error: ISO C++ forbids declaration of `a' with

no type

C:/cprograms/something.cpp:21: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:21: error: assignment (not initialization) in

declaration

C:/cprograms/something.cpp:21: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:21: error: ISO C++ forbids declaration of `a' with

no type

C:/cprograms/something.cpp:21: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:21: error: assignment (not initialization) in

declaration

C:/cprograms/something.cpp:21: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:22: error: ISO C++ forbids declaration of `a' with

no type

C:/cprograms/something.cpp:22: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:22: error: assignment (not initialization) in

declaration

C:/cprograms/something.cpp:22: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:22: error: ISO C++ forbids declaration of `a' with

no type

C:/cprograms/something.cpp:22: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:22: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:22: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:22: error: assignment (not initialization) in

declaration

C:/cprograms/something.cpp:22: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:22: error: ISO C++ forbids declaration of `a' with

no type

C:/cprograms/something.cpp:23: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:23: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:23: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:23: error: assignment (not initialization) in

declaration

C:/cprograms/something.cpp:23: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:23: error: ISO C++ forbids declaration of `a' with

no type

C:/cprograms/something.cpp:23: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:23: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:23: error: `cc' was not declared in this scope

 

C:/cprograms/something.cpp:23: error: assignment (not initialization) in

declaration

C:/cprograms/something.cpp:23: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:23: error: ISO C++ forbids declaration of `a' with

no type

C:/cprograms/something.cpp:23: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:23: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:23: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:23: error: assignment (not initialization) in

declaration

C:/cprograms/something.cpp:24: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:24: error: ISO C++ forbids declaration of `a' with

no type

C:/cprograms/something.cpp:24: error: `cc' was not declared in this scope

 

C:/cprograms/something.cpp:24: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:24: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:24: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:25: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:25: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:25: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:25: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:25: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:26: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:26: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:26: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:26: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:26: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:27: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:27: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:27: error: `cc' was not declared in this scope

 

C:/cprograms/something.cpp:27: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:27: error: assignment (not initialization) in

declaration

C:/cprograms/something.cpp:28: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:28: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:29: error: syntax error before `&&' token

 

Execution terminated

 

EDIT3: Oh, as for the quiz thing...maybe a quiz with just some realy simple stuff so people don't ask stupid questions like "How do I make a bot?".\ :)

Share this post


Link to post
Share on other sites

yea sadez. how do u compile that?

 

@athosino: we would make that quiz so u would fail =P

 

@jamesvm what u mean? Satan embarrasing for his guild mates? =D

Share this post


Link to post
Share on other sites

entropy have for a long time said he is planing to remove that command as it was supposed to be used for map debugging only (there was a room with a in that had a exist missing).

Share this post


Link to post
Share on other sites
ack...that is realy hard to read....

 

I am still a beginner at c, but i woudl say that, that script displays the date and time someplace on the screen or somethign.... :P I'm probally wrong...i'm to lazy to acutally look though it...i jsut glanced at it realy quick...lol

 

EDIT: Did you actuallyt ry to compile that...LOL....

 

Compiler: Default compiler

Executing g++.exe...

g++.exe "C:\cprograms\something.cpp" -o "C:\cprograms\something.exe" -ansi -I"C:\Dev-Cpp\include\c++\3.3.1" -I"C:\Dev-Cpp\include\c++\3.3.1\mingw32" -I"C:\Dev-Cpp\include\c++\3.3.1\backward" -I"C:\Dev-Cpp\lib\gcc-lib\mingw32\3.3.1\include" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"

C:/cprograms/something.cpp:10: error: `c' was not declared in this scope

C:/cprograms/something.cpp:10: error: `d' was not declared in this scope

C:/cprograms/something.cpp:10: error: ISO C++ forbids declaration of `b' with

no type

 

C:/cprograms/something.cpp:10: error: initializer list being treated as

compound expression

 

C:/cprograms/something.cpp:10: error: syntax error before `{' token

C:/cprograms/something.cpp:12: error: syntax error before `?' token

C:/cprograms/something.cpp:16: error: `c' was not declared in this scope

C:/cprograms/something.cpp:16: error: `d' was not declared in this scope

C:/cprograms/something.cpp:16: error: `b' cannot be used as a function

C:/cprograms/something.cpp:16: error: syntax error before `;' token

C:/cprograms/something.cpp:18: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:18: error: ISO C++ forbids declaration of `main'

with no type

C:/cprograms/something.cpp:18: error: syntax error before `{' token

C:/cprograms/something.cpp:18: error: ISO C++ forbids declaration of `srand'

with no type

C:/cprograms/something.cpp:18: error: `int srand' redeclared as different kind

of symbol

C:/Dev-Cpp/include/stdlib.h:349: error: previous declaration of `void

srand(unsigned int)'

C:/cprograms/something.cpp:19: error: ISO C++ forbids declaration of `b' with

no type

C:/cprograms/something.cpp:19: error: redefinition of `int b'

C:/cprograms/something.cpp:10: error: `int b' previously defined here

C:/cprograms/something.cpp:19: error: initializer list being treated as

compound expression

C:/cprograms/something.cpp:19: error: syntax error before `while'

C:/cprograms/something.cpp:19: error: ISO C++ forbids declaration of `b' with

no type

 

C:/cprograms/something.cpp:19: error: redefinition of `int b'

C:/cprograms/something.cpp:19: error: `int b' previously defined here

C:/cprograms/something.cpp:19: error: initializer list being treated as

 

compound expression

C:/cprograms/something.cpp:19: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:19: error: syntax error before `+=' token

C:/cprograms/something.cpp:19: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:20: error: syntax error before `+=' token

C:/cprograms/something.cpp:20: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:20: error: ISO C++ forbids declaration of `a' with

no type

C:/cprograms/something.cpp:20: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:20: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:20: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:20: error: assignment (not initialization) in

declaration

C:/cprograms/something.cpp:20: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:20: error: ISO C++ forbids declaration of `a' with

no type

C:/cprograms/something.cpp:20: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:20: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:20: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:20: error: assignment (not initialization) in

 

declaration

 

C:/cprograms/something.cpp:21: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:21: error: ISO C++ forbids declaration of `a' with

no type

C:/cprograms/something.cpp:21: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:21: error: assignment (not initialization) in

declaration

C:/cprograms/something.cpp:21: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:21: error: ISO C++ forbids declaration of `a' with

no type

C:/cprograms/something.cpp:21: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:21: error: assignment (not initialization) in

declaration

C:/cprograms/something.cpp:21: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:21: error: ISO C++ forbids declaration of `a' with

no type

C:/cprograms/something.cpp:21: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:21: error: assignment (not initialization) in

declaration

C:/cprograms/something.cpp:21: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:22: error: ISO C++ forbids declaration of `a' with

no type

C:/cprograms/something.cpp:22: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:22: error: assignment (not initialization) in

declaration

C:/cprograms/something.cpp:22: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:22: error: ISO C++ forbids declaration of `a' with

no type

C:/cprograms/something.cpp:22: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:22: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:22: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:22: error: assignment (not initialization) in

declaration

C:/cprograms/something.cpp:22: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:22: error: ISO C++ forbids declaration of `a' with

no type

C:/cprograms/something.cpp:23: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:23: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:23: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:23: error: assignment (not initialization) in

declaration

C:/cprograms/something.cpp:23: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:23: error: ISO C++ forbids declaration of `a' with

no type

C:/cprograms/something.cpp:23: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:23: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:23: error: `cc' was not declared in this scope

 

C:/cprograms/something.cpp:23: error: assignment (not initialization) in

declaration

C:/cprograms/something.cpp:23: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:23: error: ISO C++ forbids declaration of `a' with

no type

C:/cprograms/something.cpp:23: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:23: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:23: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:23: error: assignment (not initialization) in

declaration

C:/cprograms/something.cpp:24: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:24: error: ISO C++ forbids declaration of `a' with

no type

C:/cprograms/something.cpp:24: error: `cc' was not declared in this scope

 

C:/cprograms/something.cpp:24: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:24: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:24: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:25: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:25: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:25: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:25: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:25: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:26: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:26: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:26: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:26: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:26: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:27: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:27: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:27: error: `cc' was not declared in this scope

 

C:/cprograms/something.cpp:27: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:27: error: assignment (not initialization) in

declaration

C:/cprograms/something.cpp:28: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:28: error: `cc' was not declared in this scope

C:/cprograms/something.cpp:29: error: syntax error before `&&' token

 

Execution terminated

 

EDIT3: Oh, as for the quiz thing...maybe a quiz with just some realy simple stuff so people don't ask stupid questions like "How do I make a bot?".\ :D

cc a.c -o a

It compiles cleanly without warnings. You are using g++.

Share this post


Link to post
Share on other sites

ahhh...i'm stupid...accidently compiled it from a .cpp file on accident....renamed it and compiled it...worked fine :P Thanks for pointing that out...stupid me lol...

 

Ok...that program diden't do what I thought it woudl do... :D

 

EDIT: yeah...i'm runnign windows using Dev-C++ :( I probally woudl ahve known what i did wrong right away if I were on linux....I haven't done much programign in linux yet unfortuantely

Share this post


Link to post
Share on other sites
ahhh...i'm stupid...accidently compiled it from a .cpp file on accident....renamed it and compiled it...worked fine :( Thanks for pointing that out...stupid me lol...

 

Ok...that program diden't do what I thought it woudl do... :D

 

EDIT: yeah...i'm runnign windows using Dev-C++ :( I probally woudl ahve known what i did wrong right away if I were on linux....I haven't done much programign in linux yet unfortuantely

You need to have a lot of imagination to understand what it does :lol:.

The O's are food that is picked by an ant that will try to form food piles. The code is supposed to have some ressemblance to an ant :P

Share this post


Link to post
Share on other sites

LOL...i never would have guessed. I thoguth it was just some matrix like effect done with o's :D LOL.

 

EDIT: to those who compile it...dont stare at it too long...you will get a headache...LOL.

 

I woudl just attach the file...but i can't and i'm not uplaoding it to my server....LOL...

Share this post


Link to post
Share on other sites
ant? looks more like some form of camel to me. now if the jaws where down and in front then maybe it would be a ant :blink:

That's why I said that you had to have a lot of imagination :unsure:

ASCII art and art in general is not one my strenghts.

Share this post


Link to post
Share on other sites
ahhh...i'm stupid...accidently compiled it from a .cpp file on accident....renamed it and compiled it...worked fine :D  Thanks for pointing that out...stupid me lol...

 

Ok...that program diden't do what I thought it woudl do... :P

 

EDIT: yeah...i'm runnign windows using Dev-C++ B)  I probally woudl ahve known what i did wrong right away if I were on linux....I haven't done much programign in linux yet unfortuantely

on Dev-cpp

 

File -> New -> Project

 

mark "C Project" and it works

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×