Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > new a typedefed...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 44847 of 47545
Post > Topic >>

new a typedefed struct

by Vincent SHAO <vincent.shao.buaa@[EMAIL PROTECTED] > Apr 15, 2008 at 06:25 PM

There is a struct:

struct _point{
	int x;
	int y;
};
typedef _point Point;

struct _queue_node{
	 Point coordinate;
	struct _queue_node* next;
};
typedef struct _queue_node Node;
typedef struct _queue_node* pNode;

Why i can't new a Node:
pNode n=new Node(); //error:no appropriate default constructor
available
i can only pNode n=new _queue_node();
Thank you
 




 3 Posts in Topic:
new a typedefed struct
Vincent SHAO <vincent.  2008-04-15 18:25:31 
Re: new a typedefed struct
"Alf P. Steinbach&qu  2008-04-16 03:49:56 
Re: new a typedefed struct
Vincent SHAO <vincent.  2008-04-15 21:37:46 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Sep 4 23:55:29 CDT 2008.