Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Showing results 1 to 19 of 19
Search took 0.01 seconds.
Search: Posts Made By: m0rb1d
Forum: Other Scripting Languages Dec 12th, 2006, 10:05 AM
Replies: 0
Views: 360
Posted By m0rb1d
error 3 Expected end-of-statement

So, I've moved on from QBasic, but, I still mess around with what little I know from time to time. I was attempting to make a simple program for a friend, but alas, I keep getting this error when...
Forum: Python Dec 7th, 2006, 9:34 AM
Replies: 11
Views: 331
Posted By m0rb1d
Meh, I think I get it now. After typing all that...

Meh, I think I get it now. After typing all that crap out, and then re-reading it, I believe I get it.

def my_abs(num)

Is a function, so, it's not really doing anything until

if my_abs(a) ==...
Forum: Python Dec 7th, 2006, 9:32 AM
Replies: 11
Views: 331
Posted By m0rb1d
Defining a Function

Heh, I seem to be all over this forum, causing myself no end of confusion trying to find a language I can bear with. Given enough time I"ll find my niche, and only be in one forum; this is the goal...
Forum: C Dec 7th, 2006, 6:48 AM
Replies: 25
Views: 560
Posted By m0rb1d
The whole intent behind my learning a programming...

The whole intent behind my learning a programming language is because I go back to college in Spring, and, would prefer to be "refreshing" my skills, than to be in the same boat as most of the class....
Forum: C Dec 5th, 2006, 11:41 AM
Replies: 25
Views: 560
Posted By m0rb1d
Well, to be more specific, I suppose assigning...

Well, to be more specific, I suppose assigning values to each number in the array. For instance:

You have myArray[5]. I understand that I can declare each one seperately, such as

myArray[0] =...
Forum: C Dec 5th, 2006, 10:27 AM
Replies: 25
Views: 560
Posted By m0rb1d
Learning C is turning out to be much more...

Learning C is turning out to be much more difficult than I originally had anticipated. Everything was going excellent, I was understanding the content, and could make my own code based on what I was...
Forum: C Dec 4th, 2006, 10:41 AM
Replies: 25
Views: 560
Posted By m0rb1d
Im not really having as much trouble as I thought...

Im not really having as much trouble as I thought with C. It's just a matter of recognising what does what in C and comparing it to what does what in BASIC. If I can point out the differences, I can...
Forum: C Dec 4th, 2006, 9:29 AM
Replies: 25
Views: 560
Posted By m0rb1d
I am using Bloodshed Dev-C++. Yes, it does have...

I am using Bloodshed Dev-C++. Yes, it does have documentation on printf, but nothing that my apparantly not-so-keen eyes could find about %xd.
Forum: C Dec 4th, 2006, 7:39 AM
Replies: 25
Views: 560
Posted By m0rb1d
%d confusion

After attempting QBasic, and being deterred whilst getting help here ( not a bad thing, just stating the facts ) I decided to make an attempt at C. Following my same routine, I sought out an online...
Forum: Other Programming Languages Dec 2nd, 2006, 7:00 AM
Replies: 15
Views: 301
Posted By m0rb1d
Whenever I do something like that, it gets me...

Whenever I do something like that, it gets me errors. Expecting an Expression error I believe. Im not at my home pc atm, so, I cant really fire it up and give you the exact error.

Also, did you...
Forum: Other Programming Languages Dec 2nd, 2006, 6:58 AM
Replies: 15
Views: 301
Posted By m0rb1d
From my earlier post: IF choice% = 1 THEN ...

From my earlier post:

IF choice% = 1 THEN
CALL combat(hit%)
CALL defense(def%)
ELSE GOTO 190

Would this be valid, is what I am asking.

With the SUB combat, im wanting it to...
Forum: Other Programming Languages Dec 2nd, 2006, 6:44 AM
Replies: 15
Views: 301
Posted By m0rb1d
Hm, seems the more I learn, the more confusing it...

Hm, seems the more I learn, the more confusing it gets, and the more questions I end up having. Such as,

Can you use a variable?

Combat -

180
PRINT "What would you like to do?: "
PRINT
PRINT "1....
Forum: Other Programming Languages Dec 2nd, 2006, 5:13 AM
Replies: 15
Views: 301
Posted By m0rb1d
For the life of me, I cannot get FUNCTIONS, or...

For the life of me, I cannot get FUNCTIONS, or SUBS to work. I am using them as follows:

PRINT "blah blah"
PRINT "more blah blah"
PRINT "even more blah blah"
getClass

I've tried about a million...
Forum: Other Programming Languages Nov 30th, 2006, 10:13 AM
Replies: 15
Views: 301
Posted By m0rb1d
So, if I understand this correctly, the functions...

So, if I understand this correctly, the functions in your example would be:


FUNCTION getHP
RANDOMIZE TIMER
getHP = charHP% - (RND * 10) + 1
END FUNCTION


This would ensure that the monsters HP is...
Forum: Other Programming Languages Nov 30th, 2006, 8:34 AM
Replies: 15
Views: 301
Posted By m0rb1d
After rereading that tutorial, it seems SUB's DO...

After rereading that tutorial, it seems SUB's DO something, and functions return a value.

So, I suppose the actual question I'm looking for an answer to is...

Im wanting to generate 3 values, and...
Forum: Other Programming Languages Nov 30th, 2006, 8:05 AM
Replies: 15
Views: 301
Posted By m0rb1d
QBasic - The purpose of FUNCTION and SUB

Continuing along with this tutorial I have been working on, it explains subs and functions. From the examples given, it looks to me, as if they do the same things.

I have been working on a text...
Forum: Other Programming Languages Nov 30th, 2006, 7:44 AM
Replies: 15
Views: 398
Posted By m0rb1d
It's not technically homework. It is a good...

It's not technically homework. It is a good tutorial, and gives you the oppourtunity to learn through doing it yourself. Even if someone gave me the complete code for the "assignment", I would still...
Forum: Other Programming Languages Nov 30th, 2006, 7:43 AM
Replies: 15
Views: 398
Posted By m0rb1d
I picked QBasic, as I was looking for a starting...

I picked QBasic, as I was looking for a starting point that would be easiest for me to pick up on. I've made many attempts at learning programming, but always end up confused, and unable to find an...
Forum: Other Programming Languages Nov 23rd, 2006, 7:02 AM
Replies: 15
Views: 398
Posted By m0rb1d
QBasic

I figured QBasic isnt the same of Visual Basic or .net, so, posting here.

I am trying to learn it via online tutorials. Not the best method of approach I realize, however, it is my only means at the...
Showing results 1 to 19 of 19

 
Forum Jump



DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:13 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC