Search:

Type: Posts; User: anduril462

Search: Search took 0.06 seconds.

  1. Replies
    32
    Views
    11,505

    If you've learned about pointers, have you...

    If you've learned about pointers, have you learned about dynamic memory allocation, i.e. malloc/free. That would allow you to read a string into memory without technically using an array.

    Also,...
  2. Replies
    32
    Views
    11,505

    Maybe I'm missing something really trivial, or...

    Maybe I'm missing something really trivial, or some little trick to solving this without arrays, but I don't think so.

    I see nothing that forbids use of arrays in that assignment, nor the use of...
  3. Replies
    32
    Views
    11,505

    Do you have to read them in first last order, or...

    Do you have to read them in first last order, or can you read the lastname first, in which case this becomes trivial?

    EDIT: Can you post a link to the full assignment description, or copy-paste it...
  4. Replies
    32
    Views
    11,505

    You need to read firstname and lastname into char...

    You need to read firstname and lastname into char array variables (make sure they're large enough to hold a name). Look into the fgets function, or scanf for this*. Then, you can use printf with...
Results 1 to 4 of 4