Hi guys,
I'm not sure how to word the question so I'll just show an example,
Example:
main 25/3
Now, here's what I want to do. I want to take the three numbers and use them in a switch...
Type: Posts; User: Nterpol
Hi guys,
I'm not sure how to word the question so I'll just show an example,
Example:
main 25/3
Now, here's what I want to do. I want to take the three numbers and use them in a switch...
addresses[k] = (address_record*) malloc (200 * sizeof(address_record));
How about now?
Here's the part that I updated, everything else remained the same.
void get_input (address_record* addresses[], int* nr_addresses)
{
int k;
char file_name[1000];
FILE*...
Sweet!
Edit*
Now I'm confused on how I would go about getting the data. I would use fscanf (could I also use sscanf?) right? Do I store the results from fscanf in another variable that I...
Yeah,
So I would use malloc in the get_input function before I start getting the data, correct?
It's what my teacher wants us to do. :confused:
Hi guys,
I'm a beginner in C and need help with my project for school. Here's my code,
/* -------------------------------------------------------
* Carpooling
*...