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

Pages: 1-

Programming 101 project

Name: Anonymous 2007-12-04 1:30

101, yeah, I know, I'm new at this.

The class is on QBASIC, and I'm trying to figure out why

WHILE INSTR(Move$, " ") > -1
   A = INSTR(Move$, " ")
   C = A + 1
   B = A - 1
   D = LEN(Move$)
   LeftPart$ = LEFT$(Move$, (B))
   RightPart$ = MID$(Move$, (B), (D - B))
   Move$ = LeftPart$ + Right$
WEND

returns "ILLEGAL FUNCTION CALL" at the LeftPart$ line.

Name: Anonymous 2007-12-04 1:49

>>1 The class is on QBASIC
Seriously? That's amazing.

Here's your hint: it's not fucking Lisp.

Name: Anonymous 2007-12-04 2:04

>>2
that's fuckin' awesome!

now, can you answer the question?

Name: Anonymous 2007-12-04 2:12

>>3
I just did.

Name: Anonymous 2007-12-04 2:13

lets pretend, since I'm taking programming 101, that I don't know anything about Lisp.

what the HELL are you talking about?

Name: Anonymous 2007-12-04 2:21

>>5
Maybe you should try /g/.

Name: Anonymous 2007-12-04 2:23

>>6
So, you're saying the Technology board would be more suited for my Programming question than the Programming board?

I think you need to get some sleep.

Name: Anonymous 2007-12-04 2:28

I think you don't understand /prog/.

Name: Anonymous 2007-12-04 2:34

Alright...

Is this an elitist, asshole, e-penis-engorgement party, or a discussion board?

Name: Anonymous 2007-12-04 2:35

Yes. Definitely.

Name: Anonymous 2007-12-04 2:37

XOR, faggot.

Name: Anonymous 2007-12-04 2:38

>>11
Well, when you put it like that, B is negative.

Name: Anonymous 2007-12-04 8:04

>>9
You got it.

Name: Anonymous 2007-12-04 14:47

>>1
Holy shit, I haven't programmed QBASIC for over 12 years. I'm amazed that it's still being used for teaching.

"Illegal function call" means that you called the LEFT$ function with a bad parameter. Probably your variable B has become negative at some point.

You should add some debugging info just before it, something like PRINT A, B, C, D, Move$. Then look at your output screen to see what your program actually did.

Name: Anonymous 2007-12-04 15:14

The class is on QBASIC
Holy fuck. Why are they still teaching this? Where do you live?

Name: Anonymous 2007-12-04 17:16

>>13
>>14
>>15
You guys are a little late to this party. I already expressed amazement, scared OP off, and debugged his program, in that order.

Also RIGHT$ should be RIGHTPART$.

Name: Anonymous 2007-12-04 19:56

>>1
Wow, they still teach basic?

Name: Anonymous 2007-12-04 19:57

>>1
Wow, they still teach basic?

Name: Anonymous 2007-12-04 20:00

FREEBASIC OR GTFO

FOR REAL
IT INTERFACES WITH C LIBRARIES AND EVERYTHING

Name: Anonymous 2007-12-06 22:47

>>15
Africa.

Name: Anonymous 2007-12-09 7:59

>>19

I IS WIT U MAN!

Down with modern languages that don't suck.  May QBASIC always rule supreme.

Name: Anonymous 2009-03-06 7:23


The forced indentation of   code Thread over   system iexp based   to write the   modules functions classes.

Name: Anonymous 2009-03-06 7:35

The fuck is building.

Name: Anonymous 2009-03-06 14:02

Right now other licenses bsd mit etc   offer the same   kid though whose   big ambition was   to get a   bigger HDD Thanks.

Name: Anonymous 2011-02-02 23:48

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