Results 1 to 10 of 10

Thread: Other Programming Languages

  1. #1
    Join Date
    Oct 2006
    Posts
    110
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Other Programming Languages

    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.

  2. #2
    Join Date
    Oct 2006
    Posts
    110
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default QBasic

    Here's an example code in QBasic (a nice simple programming language that can be edited by NotePad and is not case-sensitive) :

    Code:
    '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

  3. #3
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Shotgun Ninja
    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.

  4. #4
    Join Date
    Oct 2006
    Posts
    110
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

  5. #5
    Join Date
    Oct 2006
    Posts
    110
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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:

    Code:
    '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
    Last edited by Shotgun Ninja; 02-20-2007 at 08:20 PM.

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    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. The thought of writing a website in QBasic is... well, enough to make my blood run cold.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Aug 2005
    Posts
    200
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Shotgun Ninja View Post
    Code:
    '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
    -JF

  8. #8
    Join Date
    Oct 2006
    Posts
    110
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

  9. #9
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    I love TI83 programming.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  10. #10
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I've long wanted to write an entire interactive website in NASM using CGI, just so I could say I'd done it.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •