help?? please

This is a discussion on help?? please within the C++ Programming forums, part of the General Programming Boards category; hello guys i just wanted know few fucntion name which will do me the following jobs 1. is there any ...

  1. #1
    Registered User ssharish2005's Avatar
    Join Date
    Sep 2005
    Location
    Cambridge, UK
    Posts
    1,682

    help?? please

    hello guys i just wanted know few fucntion name which will do me the following jobs
    1. is there any fucntion to rename an given file like in C we have rename function under stdio.h?

    2. and againn any fucntion to reallocate the memory like in C realloc we use

    any reply would be appriciated

    ssharish2005

  2. #2
    Registered User ssharish2005's Avatar
    Join Date
    Sep 2005
    Location
    Cambridge, UK
    Posts
    1,682
    i made qucik search on the board. it gave me few details telling me that can use rename to rename a file as cstdio is part of a c++ standard. but what about the reallocating the memory

    ssharish2005

  3. #3
    Registered User
    Join Date
    Aug 2005
    Posts
    113
    No,there is no equivalent c++ equivalent to realloc because class object have special problem if we try to reallocate them

  4. #4
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,340
    There is no c++ equivalent for realloc, in the same way that malloc->new and free->delete
    But then containers like vector make the need for such things less of a problem.

  5. #5
    Registered User ssharish2005's Avatar
    Join Date
    Sep 2005
    Location
    Cambridge, UK
    Posts
    1,682
    thax very much Salem, Vaibhav.

    ssharish2005

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21