User Profile

Collapse

Profile Sidebar

Collapse
Helmer
Helmer
Last Activity: Jan 11 '08, 03:26 PM
Joined: May 28 '07
Location: southern Ontario, Canada
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Helmer
    replied to Java applet Math.Random wont work
    in Java
    well i didnt define any classes with teh name math, but i will look into the java.util.rando m, sounds good, thanks for your help....
    See more | Go to post

    Leave a comment:


  • Helmer
    started a topic Java applet Math.Random wont work
    in Java

    Java applet Math.Random wont work

    i am in programming class trying to make an applet involving random placement of colored blocks, but an error is created when i try to run it saying "no method named "random" was found in type "Math". "

    i have imported java.awt like so:
    import java.awt.*;

    and this is the random number statement:
    g.fillRect((int )(Math.random() *getSize().widt h),(int)(Math.r andom()*getSize ().height),20,2 0);...
    See more | Go to post

  • Helmer
    replied to Lan chatroom
    sorry i didnt explain wat i was asking to well, im not asking for the program, i was just stating what my end goal was, i need help with accessing the network/identifying individual computers
    See more | Go to post

    Leave a comment:


  • Helmer
    started a topic Lan chatroom

    Lan chatroom

    hey im doing a final project for a computer sciences class, and i need some help, i was going to try to create a kind of instant messanger (chat room style, over LAN only) and i need a pop up alert when a new user joins the chat, ive tryed multiple times and failed, so i decided t scrap an start new, ne ideas?? i cud really use some help
    thnx in advance
    Helmer
    See more | Go to post

  • hey if u can get a chart for the keycodes of the keys on a keyboard, im sure u are all familiar with a case statement...
    form keydown event

    select case Keycode

    case vbkeyX' x=keycode

    here u put wat u want t happen wen that key is hit

    case vbkeyY y=keycode

    here u put wat u want t happen wen that key is hit

    end select

    or more...
    See more | Go to post

    Leave a comment:


  • hey if u can get a chart for the keycodes of the keys on a keyboard, im sure u are all familiar with a case statement...
    form keydown event

    select case Keycode
    case vbkeyX' x=keycode
    here u put wat u want t happen wen that key is hit
    case vbkeyY y=keycode
    here u put wat u want t happen wen that key is hit
    end select

    for most keys the keycode is the keyname ex K's keycode is vbkeyK, etc
    See more | Go to post

    Leave a comment:


  • Helmer
    replied to creating a matrix
    hey may of already been suggested but u may want to look into a 3d array,
    dim array(x, y, z) as long 'where x and y= dimensions of your matrix, and z= how many matrixes you have, that way you can just multiply the planes of the 3d array nice and efficient, and only 1 array is used
    See more | Go to post

    Leave a comment:


  • Helmer
    replied to Visual Basic 6
    heres another way t do it:
    Dim Input as single
    Dim Output as Single

    Output=Input
    for x= input to 2
    Output=Output*( Input-1)
    next x

    'where input is the number befor the factorial sign(!), and output is well your output
    nice an simple as the factorial is the number multiplied by number- 1, untill number-1= 1 as if it went till number=1 then you would multiply by 0 and poof pointless :P...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...