+ Reply to Thread
Page 4 of 4 FirstFirst ... 234
Results 31 to 34 of 34

Thread: Dynamic Arrays: Using malloc() and realloc()

  1. #31
    spyder's Avatar
    spyder is offline Programmer
    Join Date
    Jul 2010
    Location
    In your head, doing all your programming for you.
    Posts
    120
    Blog Entries
    2
    Rep Power
    0

    Re: Dynamic Arrays: Using malloc() and realloc()

    Um, I typed in the program, and it compiled fine, but when I enter anything, it only goes to another blank line to infinity.
    (Yes I know this is an old tutorial )
    I C!(and Python, and C++, and ...)

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #32
    Join Date
    Sep 2009
    Location
    USA
    Posts
    3,400
    Blog Entries
    5
    Rep Power
    37

    Re: Dynamic Arrays: Using malloc() and realloc()

    Quote Originally Posted by spyder View Post
    Um, I typed in the program, and it compiled fine, but when I enter anything, it only goes to another blank line to infinity.
    (Yes I know this is an old tutorial )
    The program should stop reading input when it hits end of file. If you're on Windows, use CTRL+Z on a blank line. On *nix, use CTRL+D on a blank line.
    Root Beer == System Administrator's Beer
    Download the new operating system programming kit! (some assembly required)

  4. #33
    Jarryd's Avatar
    Jarryd is offline Learning Programmer
    Join Date
    Sep 2010
    Location
    Queensland, Australia
    Posts
    63
    Rep Power
    6

    Re: Dynamic Arrays: Using malloc() and realloc()

    Nice tutorial mate, easy to read, easy to understand

  5. #34
    Join Date
    Sep 2009
    Location
    USA
    Posts
    3,400
    Blog Entries
    5
    Rep Power
    37

    Re: Dynamic Arrays: Using malloc() and realloc()

    Quote Originally Posted by Jarryd View Post
    Nice tutorial mate, easy to read, easy to understand
    Thanks for the compliment; I'm glad you liked it.
    Root Beer == System Administrator's Beer
    Download the new operating system programming kit! (some assembly required)

+ Reply to Thread
Page 4 of 4 FirstFirst ... 234

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. what exactly is the second argument of realloc()???
    By shakisparki in forum C and C++
    Replies: 2
    Last Post: 04-05-2011, 08:18 PM
  2. realloc issues
    By chili5 in forum C and C++
    Replies: 4
    Last Post: 03-20-2011, 03:13 PM
  3. Using malloc() and realloc() for a variable-length string
    By DarkLordofthePenguins in forum C and C++
    Replies: 6
    Last Post: 03-17-2011, 10:04 PM
  4. Possible malloc issue, not really sure...
    By MichaelNQ in forum C and C++
    Replies: 4
    Last Post: 11-25-2009, 04:49 PM
  5. Dynamic Arrays
    By Fedex in forum C and C++
    Replies: 3
    Last Post: 12-02-2007, 02:45 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts