Search:

Type: Posts; User: Matticus

Search: Search took 0.05 seconds.

  1. Replies
    11
    Views
    6,074

    That's exactly how it looks in the sample code on...

    That's exactly how it looks in the sample code on the page I linked above. Unfortunately, it's going to take more than a simple copy + paste to be useful in your application.

    Read about the...
  2. Replies
    11
    Views
    6,074

    It depends on what you're trying to accomplish. ...

    It depends on what you're trying to accomplish. "while" loops are good if you're waiting for a certain criteria to be met before breaking. "for" loops are good for continuous iteration until a...
  3. Replies
    11
    Views
    6,074

    Reference: fgets()...

    Reference: fgets()
    Example of usage: FAQ > Get a line of text from the user/keyboard (C)

    Also, re-read the second sentence of my previous post.
  4. Replies
    11
    Views
    6,074

    scanf("%s",& persons[count].name[i]); This...

    scanf("%s",& persons[count].name[i]);

    This line is not correct. The array name without the brackets will act as a pointer to that array (hence you wouldn't need the address-of operator either). ...
Results 1 to 4 of 4