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...
Type: Posts; User: Matticus
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...
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...
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.
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). ...