Thread: Inputing strings into a dynamic array

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    155

    Inputing strings into a dynamic array

    How could I make a function that accepts ten lines of user-input text and stores the enteres lines as ten strings in a pointer array?

  2. #2
    Just a Member ammar's Avatar
    Join Date
    Jun 2002
    Posts
    953
    I think it's just like reading normal strings but you should read untill you find '\n' so you know that it's the end of line, then store it in the string array...
    Hope that helps
    Sorry I don't have time to write the code.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. array of strings?
    By mc72 in forum C Programming
    Replies: 5
    Last Post: 11-15-2008, 11:15 PM
  2. Replies: 2
    Last Post: 07-11-2008, 07:39 AM
  3. Multi-dimensional dynamic array - performance
    By melkor445 in forum C++ Programming
    Replies: 15
    Last Post: 10-07-2007, 04:17 AM
  4. Dynamic structure with array and array count
    By Nazgulled in forum C Programming
    Replies: 14
    Last Post: 06-08-2007, 10:10 PM
  5. dynamic array
    By linuxdude in forum C Programming
    Replies: 5
    Last Post: 07-13-2004, 02:33 AM
Website Security Test