Results 1 to 4 of 4

Thread: Why this error ?

  1. #1

    Thread Starter
    Member rajab natshah's Avatar
    Join Date
    Dec 2001
    Posts
    43

    Smile Why this error ?

    Hi,
    Why this error ?
    my opject can't by craite correct.
    thank you for hellp me.
    Attached Files Attached Files

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Isn't it obvious?

    This one may be less obvious:
    Code:
    class CNode  
    {
    public:
    	int ActionNumber;
    	CNode* Action[];
    	CString Data;
    
    	CNode();
    	virtual ~CNode();
    };
    No class/struct may contain a undefined-element-count array. This construct may only be used when declaring and immediatly initializing a global or stack array and as function parameter.

    But this one is extremly obvious:
    Code:
    	new Head;
    	new Loc;
    	new Prv;
    Oh my, have you any idea what the new keyword is for and how to use it?
    Better go to some page like www.cplusplus.com or www.cprogramming.org and grab a tutorial.
    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.

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Oh, and p1, p2, p3 and p4 are not members of CNode...
    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.

  4. #4

    Thread Starter
    Member rajab natshah's Avatar
    Join Date
    Dec 2001
    Posts
    43

    Smile

    Oh ...!?!
    IM insert not correct code Im sory.

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