Thread: possible in qbasic

  1. #1
    Sir Mister Insane Sako Klinerr1's Avatar
    Join Date
    May 2002
    Posts
    608

    possible in qbasic

    im trying to do a qbasic refrence sheet of comamnds for several languages, and i want to make it so that the user can type in aq searhc for a command, and qbasic finds all labels that are exact mathes or close, is thi possible, or should i just make a php based thing (i really, really, want to do it in qbasic because it would run faster and could be used offline for people who ahve aol and are not always online using broadband)
    Email: [email protected] || AIM: MisterSako || MSN: [email protected]

    -the shroom has spoken

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    It is possible, it's just impractical. QBASIC stores strings as single units, and in order to do a search (unless there's an operator for "contains" or something - I don't know of one), you'd have to have characters stored in separate units, so set up and array of characters, and if you were going to display any of them on screen, you'd have to have PRINT A(1); A(2) etc..., which is what will make it impractical. To get it as fast s possible, Assembly would be best, and BASIC isn't exactly top of the range for programming - it was intended as a learning language and I think should be kept that way. It lacks a lot of the structure that you should ideally have, but that's just a suggestion.

  3. #3
    Sir Mister Insane Sako Klinerr1's Avatar
    Join Date
    May 2002
    Posts
    608
    if i go and try to learn addembly will it cost me anything (besides buying books etd)
    Email: [email protected] || AIM: MisterSako || MSN: [email protected]

    -the shroom has spoken

  4. #4
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    No. You don't even have to buy books. You can probably fid a tutorial somewhere on the internet. I've learned everything I have without any money on programming-related things. I'm sure you can manage. (And uh it's, "He's about to run into a hcestnut tree", if I remember correctly.

  5. #5
    Sir Mister Insane Sako Klinerr1's Avatar
    Join Date
    May 2002
    Posts
    608
    thanks for the info man ( yeah, he hits a tree imediatyl after )
    Email: [email protected] || AIM: MisterSako || MSN: [email protected]

    -the shroom has spoken

  6. #6
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    As far as soaftware for Assemblers go, I gave up on mine. I might do a non-CGI one some other time - CGI would've just been too much over head. Anyway - try CNet, they always have good stuff. Or if you want DEBUG, I can just upload it for you. No problem.

  7. #7
    Sir Mister Insane Sako Klinerr1's Avatar
    Join Date
    May 2002
    Posts
    608
    can u upload debug?
    Email: [email protected] || AIM: MisterSako || MSN: [email protected]

    -the shroom has spoken

  8. #8
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    I can't find the disk - and I've gotta get to bed. I'll look for it tomorrow and upload it. Shouldn't be too hard to find - I was using it the other day. Have you used debug before? It's kind of a bad program for the unexperienced, but by far the best if you know what you're doing. In the meantime, do a search on Google for a tutorial, you might even find a download.

  9. #9
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    Here it is. Because this site doesn't allow you to upload *.exe files, I just changed the xtension to cpp - it's still in the same format. Win 98 and above don't let you change the extension using My Computer, so use a text editor or something. Hope this helps. Press ? and enter to get a list of instructions, and q to exit. YOu might want to get an online tutorial on this because it is quite un-user-friendly. Or is it user-unfriendly?

  10. #10
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    Darn... I did it again, and you can't attach files while doing an edit. Sorry - here it is.

  11. #11
    Sir Mister Insane Sako Klinerr1's Avatar
    Join Date
    May 2002
    Posts
    608
    the corretc wya of sayign it is user-nonfrieldly, thankx for the file :-D
    Email: [email protected] || AIM: MisterSako || MSN: [email protected]

    -the shroom has spoken

  12. #12
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    Thought so - but you can't blame me. It was only 11 am - I don't think well that early..

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. whats wrong with QBASIC...in a way
    By guyfromfl in forum C Programming
    Replies: 4
    Last Post: 06-03-2008, 02:50 AM
  2. QBasic Bot
    By cogeek in forum Tech Board
    Replies: 5
    Last Post: 11-08-2004, 07:55 AM
  3. global variables in qbasic
    By Geo-Fry in forum Game Programming
    Replies: 10
    Last Post: 10-09-2003, 07:53 AM
  4. BASIC vs. Qbasic
    By Jperensky in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 12-10-2002, 09:13 AM
  5. qbasic
    By Klinerr1 in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 06-13-2002, 11:20 AM