Programming 101 project
1
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.
2
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.
3
Name:
Anonymous
2007-12-04 2:04
>>2
that's fuckin' awesome!
now, can you answer the question?
4
Name:
Anonymous
2007-12-04 2:12
5
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?
6
Name:
Anonymous
2007-12-04 2:21
>>5
Maybe you should try /g/.
7
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.
8
Name:
Anonymous
2007-12-04 2:28
I think you don't understand /prog/.
9
Name:
Anonymous
2007-12-04 2:34
Alright...
Is this an elitist, asshole, e-penis-engorgement party, or a discussion board?
10
Name:
Anonymous
2007-12-04 2:35
Yes. Definitely.
11
Name:
Anonymous
2007-12-04 2:37
XOR, faggot.
12
Name:
Anonymous
2007-12-04 2:38
>>11
Well, when you put it like that, B is negative.
13
Name:
Anonymous
2007-12-04 8:04
14
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.
15
Name:
Anonymous
2007-12-04 15:14
The class is on QBASIC
Holy fuck. Why are they still teaching this? Where do you live?
16
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$.
17
Name:
Anonymous
2007-12-04 19:56
>>1
Wow, they still teach basic?
18
Name:
Anonymous
2007-12-04 19:57
>>1
Wow, they still teach basic?
19
Name:
Anonymous
2007-12-04 20:00
FREEBASIC OR GTFO
FOR REAL
IT INTERFACES WITH C LIBRARIES AND EVERYTHING
20
Name:
Anonymous
2007-12-06 22:47
21
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.
22
Name:
Anonymous
2009-03-06 7:23
The forced indentation of code Thread over system iexp based to write the modules functions classes.
23
Name:
Anonymous
2009-03-06 7:35
The fuck is building.
24
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.
25
Name:
Anonymous
2011-02-02 23:48