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++ > my own struct o...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 7 Topic 43122 of 48022
Post > Topic >>

my own struct on vector

by remlostime <remlostime@[EMAIL PROTECTED] > Feb 6, 2008 at 02:58 AM

6 int main()
  7 {
  8   struct nodeType
  9   {
 10     int a, b;
 11   };
 12   list<nodeType> x;
 13   return 0;
 14 }
(2 / 5): error: `main()::nodeType' uses local type `main()::nodeType'

what's wrong with my code? how should I modify?
 




 7 Posts in Topic:
my own struct on vector
remlostime <remlostime  2008-02-06 02:58:28 
Re: my own struct on vector
"Jim Langston"   2008-02-06 03:32:22 
Re: my own struct on vector
remlostime <remlostime  2008-02-06 03:59:00 
Re: my own struct on vector
"=?ISO-8859-1?Q?Erik  2008-02-06 05:11:11 
Re: my own struct on vector
remlostime <remlostime  2008-02-06 05:30:50 
Re: my own struct on vector
"=?ISO-8859-1?Q?Erik  2008-02-06 06:43:09 
Re: my own struct on vector
tragomaskhalos <dave.d  2008-02-06 07:06:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Tue Oct 14 11:23:15 CDT 2008.