BASIC vs. Qbasic

This is a discussion on BASIC vs. Qbasic within the A Brief History of Cprogramming.com forums, part of the Community Boards category; I have been playing with BASIC and Qbasic and I can't tell what the difference is. Is it like the ...

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    59

    BASIC vs. Qbasic

    I have been playing with BASIC and Qbasic and I can't tell what the difference is.

    Is it like the difference between C and C++, all of the C elements will work in C++ but there is more you can do (all BASIC will work in Qbasic)?

    Thanks For The Help!

  2. #2
    Seńor Member
    Join Date
    Jan 2002
    Posts
    561
    Qbasic = Microsoft's version of BASIC. I never learned BASIC, but I think the code is close to identical. That being said, those languages are both worthless and you're wasting your time learning them.

  3. #3
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    Actually QBasic is just an interpreter for BASIC. If you get one of the more recent versions of QBasic that actually compile *.exe files, I actually don't think it's a waste of time. It's really useful for learning the basics of programming and making simple utilities.

  4. #4
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,738
    BASIC is a language, QBasic is a compiler.

    It is not like the difference between C and C++ at all. It is more like the difference between Borland C++ and C++, or MS Visual C++ and C++. One is a compiler for the language, one is the actual language.

    There are many other BASIC compilers, such as:

    FirstBasic
    PowerBasic
    GamesBasic
    DarkBasic
    Visual Basic (yes, this is a BASIC compiler, not its own language)

    It is not a waste of time to learn BASIC. Visual Basic is still a very common compiler used in the business world for corporate functions, and if you plan on going into that field, you will use it a whole lot.

    Most of the other compilers are not in general use in the professional world, but it would still be good to learn BASIC because it is an easy to learn language that can help you to learn some of the fundementals of programming and can lead you into C and C++.
    My Website

    "Circular logic is good because it is."

  5. #5
    Just a Member ammar's Avatar
    Join Date
    Jun 2002
    Posts
    953
    Although I don't like this language, I don't consider it a waste of time, because you make simple things without much effort.
    And it's good to teach young people programming with BASIC so they can understand the basic concepts of progamming.
    none...

  6. #6
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    I dont know why everybody says this! I learnt C++ with no knowlege of what programming was!! (I didn't know about compilers, etc..). The concepts are the same, so why learn them along with a crap lang?

  7. #7
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    BASIC is a language for which a lot of interpreters were created, like GW-Basic. Also MS-DOS versions came with basic, I can remember that MS-DOS 5.0 came with the first QBasic interpreter. This was a BASIC interpreter with an IDE which looked a lot like MS-Edit. There were also BASIC compilers, like QuickBasic.

    BASIC is a very easy language and one can easily make a usefull tool with it. Because it is so easy to use, it can be used to make people enthousiastic for programming. They can, with little effort, create a piece of software which works. Such small things can motivate people to learn more about programming.

    A disadvantage of BASIC is that it is also easy to learn bad programming habits like using GOTO. However, the language as I remember from long ago also supported SUB-procedures.

    Some people are really motivated to learn programming and start with languages like C or Pascal. Others don't know if they really like it, they think programming is too difficult for them. Programming in BASIC would show those people that it can also be easy and above all: fun. As they gain more knowledge and experience, they probably also learn more about programming theory and other languages like C and C++.

    As I understood from some reading on the internet, BASIC is not only used for learning people programming, but it seems also being used in professional applications, mainly Visual Basic.

  8. #8
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Originally posted by Shiro
    They can, with little effort, create a piece of software which works.
    Is it that much harder to do that in C++?
    No, forget BASIC because it gives you bad habits.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  9. #9
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    >Is it that much harder to do that in C++?

    For some people, yes.

    >No, forget BASIC because it gives you bad habits.

    It _can_ give you bad habits. Also in other languages programmers can develop bad habits. Like C-programmers who write enormous functions instead of splitting them up in smaller functions, people misusing pointers because they don't understand them, and many more of such things.

    And what about void main().

  10. #10
    Satan valar_king's Avatar
    Join Date
    Aug 2001
    Posts
    288
    QBasic is different from BASIC. Just like Visual C++ is different from C++. Thought QBasic does away with things like line numbers. It adds better input, output functions. It adds better subroutine and function support. QBasic is much better than plain BASIC.

    Though it's like comparing one pile of dog crap to another.
    -Save the whales. Collect the whole set.

  11. #11
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    lol - Good one. But still, that makes excellent fertilizer.

  12. #12
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,738
    Is it that much harder to do that in C++?
    Well why dont you take a look for yourself?

    C++:
    Code:
    #include <iostream.h>
    #include <conio.h>
    
    int main ( void )
    {  
         cout << "Hello, World!" << endl;
         getch();
         return 0;
    }
    BASIC:
    Code:
    PRINT "Hello, World!"
    My Website

    "Circular logic is good because it is."

  13. #13
    Terrancee
    Guest
    Originally posted by DavidP
    Well why dont you take a look for yourself?

    C++:
    Code:
    #include <iostream.h>
    #include <conio.h>
    
    int main ( void )
    {  
         cout << "Hello, World!" << endl;
         getch();
         return 0;
    }
    BASIC:
    Code:
    PRINT "Hello, World!"
    Not a good example of why c++ is a tougher language than basic.

    c++ incorporates a lot of rules and theories that make it much more difficult to learn and implement than other languages.

    Basic was a programming language designed for non programmers to learn programming relatively quickly and allow them to write small applications.

    qbasic is a compiler, opposed to basic- a language, but qbasic is modified from the original basic. Qbasic was meant to be a simplified version of basic, invented by Bill Gates and Paul Allen (just wanted to add that)!

    Liberty basic ( www.libertybasic.com ) is very similar to qbasic, and it has an IDE. You might want to check it out.

  14. #14
    Terrancee
    Guest
    And visual basic is a language, just like vb.net.

    vb scripting is also a language by itself.

    Anyone would consider vb a language in itself!

  15. #15
    Registered User dirkduck's Avatar
    Join Date
    Aug 2001
    Posts
    428
    " No endl needed because the BASIC script doesn't print one either (I think). "

    Try
    PRINT "line 1"
    PRINT "next line"

    The second print will show up a line below the first. Need the endl or \n for that in C++. Personally I think BASIC is great .

Page 1 of 2 12 LastLast
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, 03:50 AM
  2. [ANN] New script engine (Basic sintax)
    By MKTMK in forum C++ Programming
    Replies: 1
    Last Post: 11-01-2005, 10:28 AM
  3. what are your thoughts on visual basic?
    By orion- in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 09-22-2005, 05:28 AM
  4. visual basic vs C or C++
    By FOOTOO in forum Windows Programming
    Replies: 5
    Last Post: 02-06-2005, 08:41 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21