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++ > a strange C++ s...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 8 Topic 44256 of 47977
Post > Topic >>

a strange C++ syntax for me

by Onix <onix.xino@[EMAIL PROTECTED] > Mar 31, 2008 at 09:50 AM

I'm reading a code and this is what it looks like, pretty strange for
me:

class A {
   size_t i_;
public:
   A(size_t i): i_(i) {}
}

Is the constructor above is the same with the following?

   A(size_t i) {
       i_ = i;
   }


Thanks
 




 8 Posts in Topic:
a strange C++ syntax for me
Onix <onix.xino@[EMAIL  2008-03-31 09:50:59 
Re: a strange C++ syntax for me
"Abhishek Padmanabh&  2008-03-31 22:40:28 
Re: a strange C++ syntax for me
Ron Natalie <ron@[EMAI  2008-03-31 19:06:13 
Re: a strange C++ syntax for me
=?UTF-8?B?RXJpayBXaWtzdHL  2008-03-31 17:45:59 
Re: a strange C++ syntax for me
brian tyler <brian.tyl  2008-03-31 11:33:26 
Re: a strange C++ syntax for me
Abhishek Padmanabh <ab  2008-04-01 06:59:15 
Re: a strange C++ syntax for me
Ron Natalie <ron@[EMAI  2008-04-01 22:01:45 
Re: a strange C++ syntax for me
Juha Nieminen <nospam@  2008-04-01 19:23:43 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Sat Oct 11 8:47:36 CDT 2008.