Convert to another script

This is a discussion on Convert to another script within the Windows Programming forums, part of the Platform Specific Boards category; How do I convert this script to VBScript to be put into NotePad and run as Windows Script. start declare ...

  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    2

    Convert to another script

    How do I convert this script to VBScript to be put into NotePad and run as Windows Script.

    start

    declare variables
    char elementCnt
    char newMember
    num testTotal equals 0
    num i equals 0
    num grades[]

    input “Enter the number of Tests” into elementCnt

    for i = 0 to (elementCnt - 1)
    grades[i] = 0
    input "Enter Score >> “ into grades [i]
    testTotal equals testTotal plus grades [i]
    i equals 0
    for i = 0 to (elementCnt - 1)
    print “Test Score “ plus i plus “ equals “ plus grades [i]
    print "Total >> " plus testTotal
    print "Average >> " plus (testTotal / elementCnt)
    3 - This
    end

  2. #2
    'Allo, 'Allo, Allo
    Join Date
    Apr 2008
    Posts
    612
    Quote Originally Posted by davewillis View Post
    How do I convert this script to VBScript to be put into NotePad and run as Windows Script.
    You pay attention in class.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. deallocating a struct containing arrays
    By maxtothemax in forum C Programming
    Replies: 5
    Last Post: 09-28-2009, 08:09 PM
  2. Script in games
    By Shakti in forum Game Programming
    Replies: 7
    Last Post: 09-27-2006, 01:27 AM
  3. In a game Engine...
    By Shamino in forum Game Programming
    Replies: 28
    Last Post: 02-19-2006, 11:30 AM
  4. Passing arguments to script.....
    By suwie in forum C Programming
    Replies: 5
    Last Post: 09-26-2004, 12:10 AM
  5. Game structure, any thoughts?
    By Vorok in forum Game Programming
    Replies: 2
    Last Post: 06-07-2003, 02:47 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21