I'd rather do GWBasic :)
heheCode:
10 INPUT "Hey, what's your name?", $name
20 PRINT "Hey there " & $name & "Whassup?"
30 PRINT "My name's Ken, by the way :)"
40 FOR X = 0 TO 50 STEP 1
50 PRINT "All BASIC sucks :)"
60 NEXT X
Printable View
I'd rather do GWBasic :)
heheCode:
10 INPUT "Hey, what's your name?", $name
20 PRINT "Hey there " & $name & "Whassup?"
30 PRINT "My name's Ken, by the way :)"
40 FOR X = 0 TO 50 STEP 1
50 PRINT "All BASIC sucks :)"
60 NEXT X
At least it can be used to do some decent things (although you could easily do it in C)
Code:'TESTING CPU SPEED IN QBASIC
'
'This will test how many loops the machine is
'able to do in 0.3 seconds.
'
'This test will take the same amount of time (0.3 seconds)
'no matter what the speed of the machine. The higher the value
'of CpuSpeed&, the faster the computer.
CLS
StartTime = TIMER
CpuSpeed& = 0
PRINT "CPU SPEED TESTER"
PRINT "Testing..."
DO
CpuSpeed& = CpuSpeed& + 1
LOOP UNTIL TIMER >= StartTime + .3
PRINT "done."; CpuSpeed&
'SUMMARY...
'This method is not very accurate - you will notice variations
'in the results if you run the programs a couple
'of times, but they will give an indication.
Of course that would only really work prefectly if you had NO apps running, and no windows running (just direct from the BIOS) but I get your point. I know every lang has a purpose, I just happen to despise VB - what's wrong with that?
nothing is wrong with that, I'm just saying that you can turn a negative into a positive. Think of learning VB of having aqquired another skill - believe it or not, VB programmers can get employed and paid.
I definately have to go with KEN and evenflow. KEN is right, VB is not really as...well, not as...just not like C. But VB is a good RAD (Rapid Application Developer) and that is good in a situation where speed doesn't really matter.
--Garfield
I started with 0's and 1's....ever drastic day went by as i...still...tried....to create....a hello world program. little did I know I was just creating a text file. with a fairy. that gave me 3 wishes. I wished i could do stuff. She turned me into a quad.:(
Hi every one, I'm Sean and my first language was.... BASIC. *sniff* *sniff*