Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

BASIC programming thread

Name: Anonymous 2011-04-16 9:45

Write one line in standard Microsoft QBASIC, but use line numbers.
Hopefully we can get to 1000 posts and have a cool program.
Don't fag it up with trolling, incorrect syntax or other douchebaggery.  There's plenty of other threads for that.

Begin:
10 CLS:SCREEN 7

Name: Anonymous 2011-04-16 9:48

// hi /programming/

// i've got:

float *bananas;

// how do i allocate memory so i can use it like

bananas[0] = 3;
bananas[1] = 381; // lots of bananas

// also, how do i free memory afterwards

Name: Anonymous 2011-04-16 10:36

>>2

> rm -r *

Name: Anonymous 2011-04-16 10:48

20 GOTO 10

Name: Anonymous 2011-04-16 10:52

>>3
U MENArm -rf /

Name: Anonymous 2011-04-16 10:56

>>2

float *bananas = (float *)malloc(sizeof(float)*2);
*bananas = 3;
*(bananas+1) = 381;


Array brackets are detrimental to finite imperative programming, as they induce the illusion of a set

Name: Anonymous 2011-04-16 11:00

>>6
MOTHERFUCKER YOU FORGOT TO free(bananas);
HATERS GONNA HATE

Name: Anonymous 2011-04-16 11:12

>>7
FREE BANANAS IN MY ANUS

Name: Anonymous 2011-04-16 14:22

What the fuck is wrong with you spergfucks?  Seriously, I try to create an interesting thread and you niggerfucks shit it up.  This is why /prog/ is dying, because of YOU.  Guess I continue my daily troll posts, faggots.

Name: Anonymous 2011-04-16 14:23

Oh, and in before bawwwwwww and 100 other stupid niggermemes that were funny in 2002.

Name: Anonymous 2011-04-16 14:47

>>6
B-BANANAS-B-A-N-A-N-A-S

Name: Anonymous 2011-04-16 15:41

20 PRINT "Guess My Number"

Name: Anonymous 2011-04-16 16:26

QBasic is impure.  You must use an implementation with the Forced Numbering of Lines

Don't change these.
Name: Email:
Entire Thread Thread List