static object?

Discussion in 'C++' started by Eric, Aug 9, 2004.

  1. Eric

    Eric Guest

    My program will create a few instance of class A. Class A will always
    need this 256byte array that is used for bitcounting. I have a
    function that fills the array. How do a right a class or object that
    will only create one of these arrays that every class A can see?
    Eric, Aug 9, 2004
    #1
    1. Advertising

  2. Eric wrote:

    > My program will create a few instance of class A. Class A will always
    > need this 256byte array that is used for bitcounting. I have a
    > function that fills the array. How do a right a class or object that
    > will only create one of these arrays that every class A can see?


    Did you read Victor's response?

    Are you waiting for somebody to email you?


    --
    Thomas Matthews

    C++ newsgroup welcome message:
    http://www.slack.net/~shiva/welcome.txt
    C++ Faq: http://www.parashift.com/c -faq-lite
    C Faq: http://www.eskimo.com/~scs/c-faq/top.html
    alt.comp.lang.learn.c-c++ faq:
    http://www.comeaucomputing.com/learn/faq/
    Other sites:
    http://www.josuttis.com -- C++ STL Library book
    Thomas Matthews, Aug 9, 2004
    #2
    1. Advertising

  3. Eric

    Eric Guest

    Thomas Matthews <> wrote in message news:<_IMRc.499$>...
    > Did you read Victor's response?
    >
    > Are you waiting for somebody to email you?
    >
    >
    > --
    > Thomas Matthews


    I just read it, and it looks like what I need.
    Eric, Aug 9, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Michael Meckelein
    Replies:
    3
    Views:
    9,255
    Kevin Spencer
    Apr 14, 2004
  2. Natan

    Static vs. non-static connection

    Natan, May 24, 2004, in forum: ASP .Net
    Replies:
    8
    Views:
    7,305
    Sami Vaaraniemi
    May 26, 2004
  3. Ben
    Replies:
    3
    Views:
    411
  4. Paul W

    Static is REALLY Static!

    Paul W, May 3, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    363
  5. tropos
    Replies:
    3
    Views:
    448
Loading...

Share This Page