Quote:
So you are saying that because BASIC allows you to write in 4 lines what you wrote in 17 that BASIC is more powerful?
Of course not. I said I tought at my first use of C/C++.
And don't use the word "powerful". It has no meaning at all.
Quote:
Your objections to C obviously come from a programmer's standpoint who is very new to C and well versed in BASIC.
Have you read all the post before sending new one? I really love C++ and hated QBASIC (though I started with it) at the time I learned C/C++.
I know my code was not the best (was the worst I think). But QBASIC require less knowledge for a good code. It was an example from a beginner's viewpoint.
Quote:
BASIC simply does half the work for you. C makes you do the work. This is why BASIC stands for Beginner's All-purpose Symbolic Instruction Code. There's a place for both.
It is exactly what I wanted to say, my friend.
About your optimized code, it is not my example at all. It should first save whole the string in a var (it is important in my example). So please write another optimized code (please do it in a way to get an integer from user for age, like basic code).
Quote:
It's kind of like cooking. You can make a cake using flour, eggs, etc. (the C concept) or open a box of cake mix (the BASIC concept).
Good example.