Results 1 to 3 of 3

Thread: why won't my class function run?

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2003
    Posts
    56

    why won't my class function run?

    ive made a function using classes.

    But when i run it , nothing happens

    heres the code
    Code:
     this bit declaring everything
    class andrewDX
    {
    		mymy();
    };
    
    andrewDX::mymy()
    {
    	Beep(300,300);
    }
    then to run it i write
    Code:
    andrewDX mymy();
    i just realised i spelt my name wrong....

  2. #2
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    i've never run the function like that before


    try something like:

    andrewDX myclass;
    myclass.mymy();

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    i've never run the function like that before
    Very likely, since it isn't possible
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

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