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...
Type: Posts; User: Ploe
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...
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...
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!
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...