Search:

Type: Posts; User: mayday

Search: Search took 0.00 seconds.

  1. Replies
    9
    Views
    3,678

    My bad...I was looking at his original code and...

    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...
  2. Replies
    9
    Views
    3,678

    I'm confused by this statement. When you say...

    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++?
  3. Thread: writing to file

    by mayday
    Replies
    3
    Views
    999

    If data in the file only needs to be read by your...

    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...
  4. Thread: Strings

    by mayday
    Replies
    7
    Views
    1,413

    Since you said it's an assignment I really hate...

    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...
  5. Replies
    6
    Views
    1,681

    Should be able to send an HTTP request to that...

    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...
  6. Replies
    2
    Views
    1,016

    If you are barely allocating any space the...

    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? ...
Results 1 to 6 of 6