return new wat it means

Discussion in 'C++' started by rajm2019@gmail.com, Apr 9, 2007.

  1. Guest

    hi wat is meant by return new are u returning a pointer to object
    created wat if i write like this return new class-name() i.e
    constructor of class .is it mean the same yet.
     
    , Apr 9, 2007
    #1
    1. Advertising

  2. Jim Langston Guest

    <> wrote in message
    news:...
    > hi wat is meant by return new are u returning a pointer to object
    > created wat if i write like this return new class-name() i.e
    > constructor of class .is it mean the same yet.


    Learn to spell. This is a newsgroup, not AOL chat. I'll answer your
    question when you retype it.
     
    Jim Langston, Apr 9, 2007
    #2
    1. Advertising

  3. On 2007-04-09 10:46, wrote:
    > hi wat is meant by return new are u returning a pointer to object
    > created wat if i write like this return new class-name() i.e
    > constructor of class .is it mean the same yet.
    >


    New allocates and constructs an object on the heap and returns a pointer
    to it.

    --
    Erik Wikström
     
    =?ISO-8859-1?Q?Erik_Wikstr=F6m?=, Apr 9, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Steve
    Replies:
    0
    Views:
    332
    Steve
    Sep 15, 2005
  2. =?Utf-8?B?dGUgZ29vZHk=?=

    Openning WAT does NOT reate aspnetdb.mbf

    =?Utf-8?B?dGUgZ29vZHk=?=, Feb 8, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    2,094
    =?Utf-8?B?dGUgZ29vZHk=?=
    Feb 8, 2006
  3. =?Utf-8?B?dGUgZ29vZHk=?=
    Replies:
    0
    Views:
    2,185
    =?Utf-8?B?dGUgZ29vZHk=?=
    Feb 8, 2006
  4. Bill Thomason
    Replies:
    2
    Views:
    12,068
    Bill Thomason
    Apr 29, 2005
  5. cracker
    Replies:
    2
    Views:
    406
    Sybren Stuvel
    May 19, 2006
Loading...

Share This Page