Thread: delete

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Dec 2011
    Posts
    4

    delete

    hey guys!
    here is a doubt.
    is using delete [] really worthy.
    when i used these functions my prog didnt work.but after removing these statements prog workd so nicely.
    I am attaching my c++ code.

    It is to ask user for input string of infinite length with given string termination character,and also allocating only as much space is required.

    please help me out in use of delete [].

    Thank you guys.
    Attached Files Attached Files

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Concerning delete/delete[] at program exit
    By laserlight in forum C++ Programming
    Replies: 58
    Last Post: 01-09-2008, 01:40 PM
  2. Replies: 17
    Last Post: 11-16-2006, 09:06 PM
  3. using delete
    By markucd in forum C++ Programming
    Replies: 2
    Last Post: 12-07-2005, 11:49 AM
  4. delete and delete[]
    By Hunter2 in forum C++ Programming
    Replies: 13
    Last Post: 06-26-2003, 04:40 AM
  5. using delete to delete an array
    By iain in forum C++ Programming
    Replies: 2
    Last Post: 03-11-2002, 03:53 PM