My bad...I was looking at his original code and didn't see he changed it to:
int* read_array(int &size)
I was really confused there for a second...
Type: Posts; User: mayday
My bad...I was looking at his original code and didn't see he changed it to:
int* read_array(int &size)
I was really confused there for a second...
I'm confused by this statement. When you say using reference, are you referring to passing by reference? How in the world does that change it from C to C++?
If data in the file only needs to be read by your app use fwrite. This is a binary write and will allow you to write the data out in blocks of CLIENT structs. Then you can use fread and read it in...
Since you said it's an assignment I really hate to spoon feed you the answer. Compare your scanf and printf and how you pass the char array. Should be obvious.
HINT: Remember a char is an...
Should be able to send an HTTP request to that URL and the contents will be returned to you. I try and stay away from C when doing any real web work, but I think you could use a socket and send a...
If you are barely allocating any space the easiest way should be to just make sure you have a free that corresponds to each malloc. Does your program run continuous or for long periods of time? ...