Results 1 to 5 of 5

Thread: New operating system...

  1. #1

    Thread Starter
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827

    Talking

    HI GUYS! I have almost finished my third operating system. It will be free for all. A lot of SKINS. BEST SERVER.

    --------------------------------------------------------
    JUST TO ATTRACT YOUR ATTENTION TO MY QUESTION
    ------------------------------------------------------------------
    OK NOW!
    What does this symbol mean:?


    ::



    And another question. How do you put smilies(faces) in the message which you post in this forum?
    Baaaaaaaaah

  2. #2
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    its is used in classes for constructors and deconstructors...to construct one you would do this:
    PHP Code:
    class MAN
    {
       
    int addAge(int age);
    };

    man::addAge
    {
       
    ///do all the function stuff here

    and smilies are in the faq

  3. #3
    Guest
    Actually Steve, it's for accessing a member in a class.

    Code:
    cout.setf(ios::fixed);
    In the above code, ios is the class, and you are accessing the fixed constant of it.

    Here is another example:

    Code:
    class myclass {
    myclass(); //constructor
    ~myclass(); //destructor
    int dostuff(); //function
    };
    
    myclass::myclass()
    {
    }
    
    myclass::~myclass()
    {
    }
    
    int myclass::dostuff()
    {
    return(5);
    }

  4. #4
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    Damn....the one question I can answer I get wrong...sorry abdul

  5. #5
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169

    Exclamation *WARNING* Techy Bit coming up!

    It's called the Scope Resolution Operator. It covers a lot more than just classes -- it also covers structs and namespaces. For example, if you have a namespace and want to call a global function with the same name as one of yours, you need it like this:
    Code:
    namespace parksie {
        void Sleep(int param) {
            ::Sleep(6000);
        }
    };
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width