Search:

Type: Posts; User: Ploe

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    2,570

    So at runtime I'd need some form of variable as a...

    So at runtime I'd need some form of variable as a reference for the size of the array? I didn't realise that sizeof was an operator, however that would explain why Code::Blocks was all neat and...
  2. Replies
    5
    Views
    2,570

    sizeof always returns 4.

    I'm trying to get to grips with malloc however the sizeof function - no matter what I do, always returns 4. Can someone explain to me what is up?



    #include <stdlib.h>
    #include <stdio.h>

    int...
  3. Replies
    3
    Views
    995

    No sorry, like I said I'm new. But thank you very...

    No sorry, like I said I'm new. But thank you very much that's exactly the information I wanted. From now on I'll look at the FAQ or search first.

    Thanks again though!
  4. Replies
    3
    Views
    995

    How do I read a line from a file?

    I'm new to C++ and I'm teaching myself with the tutorial examples on the website. However I was wondering how do you read a full line from a text file? When it is input into a string it only reads...
Results 1 to 4 of 5