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!
Printable View
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!
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.
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.
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++.
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.
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?
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.
Is it that much harder to do that in C++?Quote:
Originally posted by Shiro
They can, with little effort, create a piece of software which works.
No, forget BASIC because it gives you bad habits.
>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().
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.
lol - Good one. But still, that makes excellent fertilizer.
Well why dont you take a look for yourself?Quote:
Is it that much harder to do that in C++?
C++:
BASIC:Code:#include <iostream.h>
#include <conio.h>
int main ( void )
{
cout << "Hello, World!" << endl;
getch();
return 0;
}
Code:PRINT "Hello, World!"
Not a good example of why c++ is a tougher language than basic.Quote:
Originally posted by DavidP
Well why dont you take a look for yourself?
C++:
BASIC:Code:#include <iostream.h>
#include <conio.h>
int main ( void )
{
cout << "Hello, World!" << endl;
getch();
return 0;
}
Code:PRINT "Hello, World!"
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.
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!
" 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 :).