View Full Version : Other Programming Languages
Shotgun Ninja
02-20-2007, 02:13 PM
Okay, I know this site has HTML/XHTML, CSS, JScript, VBScript, PHP, ASP, Java, ActionScript, MySQL, and that "Other" forum (Which is, to the extent of my knowledge, only used for .htaccess so far), but what about the other high-level programming languages out there? What about QBASIC, C++, Python, C#, and those others? So if you are into other programming languages, please post here, and alk about what you can do with them.
Shotgun Ninja
02-20-2007, 02:19 PM
Here's an example code in QBasic (a nice simple programming language that can be edited by NotePad and is not case-sensitive) :
'Box Drawer program
'Made by Nick Iannone on Microsoft QuickBASIC and Notepad
'Compiled by Microsoft QuickBASIC
0 :
CLS
PRINT " Box Draw "
PRINT "************************"
PRINT " Please enter length: "
INPUT L#
PRINT " Please enter width: "
INPUT W#
PRINT " Please enter depth: "
INPUT D#
PRINT " Clear or not? (1/0) "
INPUT C#
CLS
PRINT " Loading... "
SLEEP 1
LET V# = L# * W# * D#
LET D# = D# * .6
SCREEN 7
LET P# = 100 - (L# / 2)
PSET (P#, P#)
PSET (P# - L#, P#)
PSET (P# - L#, P# - W#)
PSET (P#, P# - W#)
LET A# = L# * .5
LET B# = SQR((D# * D#) - (A# * A#))
PSET (P# - L# - A#, P# - B#)
PSET (P# - L# - A#, P# - W# - B#)
PSET (P# - A#, P# - W# - B#)
LINE (P#, P#)-(P#, P# - W#)
LINE (P#, P#)-(P# - L#, P#)
LINE (P# - L#, P#)-(P# - L#, P# - W#)
LINE (P#, P# - W#)-(P# - L#, P# - W#)
LINE (P# - L#, P#)-(P# - L# - A#, P# - B#)
LINE (P#, P# - W#)-(P# - A#, P# - W# - B#)
LINE (P# - L#, P# - W#)-(P# - L# - A#, P# - W# - B#)
LINE (P# - L# - A#, P# - B#)-(P# - L# - A#, P# - W# - B#)
LINE (P# - A#, P# - W# - B#)-(P# - L# - A#, P# - W# - B#)
IF C# = 1 THEN
GOTO 2
ELSEIF C# = 0 THEN
GOTO 1
ELSE
GOTO 0
END IF
1 :
PSET (P# - A#, P# - B#)
LINE (P#, P#)-(P# - A#, P# - B#)
LINE (P# - A#, P# - B#)-(P# - L# - A#, P# - B#)
LINE (P# - A#, P# - B#)-(P# - A#, P# - W# - B#)
2 :
PRINT "Volume:"; V#
END
shachi
02-20-2007, 04:38 PM
but what about the other high-level programming languages out there? What about QBASIC, C++, Python, C#, and those others?
I guess you didn't realize that these forums are for discussing languages for the Web.
Shotgun Ninja
02-20-2007, 08:01 PM
So? Look at what I have ignited. There are currently about 4 other threads with related subject matter pertaining to this. And besides, QBasic can be used for automating web interactions. MySQL was based off of QBasic and related scripting languages. Heck, you could probably use QBasic or C# to make your own web code language.
Shotgun Ninja
02-20-2007, 08:02 PM
Hey, cool, I'm now up to 'Regular Coder'.
EDIT:
By the way, I'm pretty sure you could use this QBasic command, for example:
'Example
CLS
CHDIR http://whateverwebsite.com/ (Website folder)
OPEN file.dat AS 1 (File FOR mode AS filenumber)
GET 1, 1, variable# (Filenumber, RemoteVariableNumber, LocalVariable)
LET variable# = variable# + 1 (Adds 1 to variable#)
PUT 1, 1, variable# (Writes variable to remote variable)
CLOSE 1 (Closes file with filenumber 1)
CLEAR (Clears all variables, closes folders and files)
END
Well, C# can be used with ASP.NET. Python is used so frequently for web development that it's joined the P of LAMP. C++ is very rarely used for the Web, and QBasic... hah. :p The thought of writing a website in QBasic is... well, enough to make my blood run cold. :)
Freeman
02-20-2007, 09:02 PM
'Box Drawer program
'Made by Nick Iannone on Microsoft QuickBASIC and Notepad
'Compiled by Microsoft QuickBASIC
0 :
CLS
PRINT " Box Draw "
PRINT "************************"
PRINT " Please enter length: "
INPUT L#
PRINT " Please enter width: "
INPUT W#
PRINT " Please enter depth: "
INPUT D#
PRINT " Clear or not? (1/0) "
INPUT C#
CLS
PRINT " Loading... "
SLEEP 1
LET V# = L# * W# * D#
LET D# = D# * .6
SCREEN 7
LET P# = 100 - (L# / 2)
PSET (P#, P#)
PSET (P# - L#, P#)
PSET (P# - L#, P# - W#)
PSET (P#, P# - W#)
LET A# = L# * .5
LET B# = SQR((D# * D#) - (A# * A#))
PSET (P# - L# - A#, P# - B#)
PSET (P# - L# - A#, P# - W# - B#)
PSET (P# - A#, P# - W# - B#)
LINE (P#, P#)-(P#, P# - W#)
LINE (P#, P#)-(P# - L#, P#)
LINE (P# - L#, P#)-(P# - L#, P# - W#)
LINE (P#, P# - W#)-(P# - L#, P# - W#)
LINE (P# - L#, P#)-(P# - L# - A#, P# - B#)
LINE (P#, P# - W#)-(P# - A#, P# - W# - B#)
LINE (P# - L#, P# - W#)-(P# - L# - A#, P# - W# - B#)
LINE (P# - L# - A#, P# - B#)-(P# - L# - A#, P# - W# - B#)
LINE (P# - A#, P# - W# - B#)-(P# - L# - A#, P# - W# - B#)
IF C# = 1 THEN
GOTO 2
ELSEIF C# = 0 THEN
GOTO 1
ELSE
GOTO 0
END IF
1 :
PSET (P# - A#, P# - B#)
LINE (P#, P#)-(P# - A#, P# - B#)
LINE (P# - A#, P# - B#)-(P# - L# - A#, P# - B#)
LINE (P# - A#, P# - B#)-(P# - A#, P# - W# - B#)
2 :
PRINT "Volume:"; V#
END
Shoot, I program like this on my Ti-83 Special edition. I didn't know I was that smart. Lol
Shotgun Ninja
02-21-2007, 01:31 PM
Actually, I first wrote that on a TI-83.
EDIT:
I'm also trying to transfer over a version of Asteroids I wrote on it to QBasic.
And by the way, I wasn't suggesting using QBasic for web programming. I just want my favorite non-web languages to have a discussion forum on here.
djr33
02-21-2007, 07:08 PM
I love TI83 programming.
I've long wanted to write an entire interactive website in NASM using CGI, just so I could say I'd done it.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.