User Profile

Collapse

Profile Sidebar

Collapse
hopalongcassidy
hopalongcassidy
Last Activity: Oct 30 '07, 09:56 PM
Joined: Oct 19 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • hopalongcassidy
    replied to Queue Implementation
    I don't like the idea of a listbox. It requires a form. Who knows if the application even has a form. I suggest a Collection.

    [CODE=vb]Dim stack as New Collection

    Sub push(whatever as Object)
    stack.add(whate ver)
    End Sub

    Function pop()
    if stack.Count = 0 then
    Call MsgBox("Error stack is empty!")
    Set pop = Nothing
    Else
    ...
    See more | Go to post
    Last edited by Killer42; Oct 22 '07, 03:00 AM.

    Leave a comment:


  • Try arctan((y2-y1)/(x2-x1))

    By the way, I read all of the replies and every one of them is wrong. The tangent of an angle is the change in Y divided by the change in X. The change in X divided by the change in Y is the cotangent!!!...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...