Thread: Two Questions:

  1. #1
    Registered User LordVirusXXP's Avatar
    Join Date
    Dec 2002
    Posts
    86

    Two Questions:

    What exactly is a stack and what does it do?

    And how do I program mouse interativity with C++?
    - Dean

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >What exactly is a stack and what does it do?
    It's a data structure where you can only add and remove items (termed push and pop respectively) to the top of the stack. For instance, if you have the stack

    1 2 3 4 5

    and you wanted to push 6 the result would be

    6 1 2 3 4 5

    When you want to pop, the last value pushed is removed, in this case, 6.

    >And how do I program mouse interativity with C++?
    Use an API such as DirectX.

    -Prelude
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. questions....so many questions about random numbers....
    By face_master in forum C++ Programming
    Replies: 2
    Last Post: 07-30-2009, 08:47 AM
  2. A very long list of questions... maybe to long...
    By Ravens'sWrath in forum C Programming
    Replies: 16
    Last Post: 05-16-2007, 05:36 AM
  3. Several Questions, main one is about protected memory
    By Tron 9000 in forum C Programming
    Replies: 3
    Last Post: 06-02-2005, 07:42 AM
  4. Trivial questions - what to do?
    By Aerie in forum A Brief History of Cprogramming.com
    Replies: 23
    Last Post: 12-26-2004, 09:44 AM
  5. questions questions questions.....
    By mfc2themax in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 08-14-2001, 07:22 AM