Search:

Type: Posts; User: AngryStyro

Search: Search took 0.00 seconds.

  1. Thanks for the tip re: >> . I think I have sorted...

    Thanks for the tip re: >> . I think I have sorted it now, I hadn't declared metricNames properly!
  2. Iterating through a map that contains a vector

    Hi, I'm current trying to iterate through a map, which has a vector in its second field, but am getting an error :

    Error 1 error C2440: 'initializing' : cannot convert from...
  3. Replies
    13
    Views
    2,708

    No, it is unrelated. I would just add it as a...

    No, it is unrelated. I would just add it as a member of the class but they are declared in the .h files and hence I can't.
  4. Replies
    13
    Views
    2,708

    Using my own method in a constructor...

    Hi, I currently have a C++ programming assignment where we have been given the header files declaring what the functions look like, and we just have to implement them.

    In the constructor for one...
  5. Replies
    17
    Views
    15,509

    Yes, sorry about the pointer names, I can be...

    Yes, sorry about the pointer names, I can be rather unthoughtful when it comes to naming some things. So you mean initialize them like this?



    char buff[maxLineWidth + 1] = {0}, *b;
    char...
  6. Replies
    17
    Views
    15,509

    Thought I'd just add what the function is meant...

    Thought I'd just add what the function is meant to do again...

    Basically the function 'printDescription' takes a paragraph of writing and outputs it depending on the 'maxLineWidth' parameter.
    ...
  7. Replies
    17
    Views
    15,509

    OK, I have managed to get rid of all the errors...

    OK, I have managed to get rid of all the errors whilst compiling, but I am not getting the output I want from the function.



    void printDescription(const char *description, const int...
  8. Replies
    17
    Views
    15,509

    Yes, I didn't exactly follow there either but...

    Yes, I didn't exactly follow there either but took their word for it since they have more experience in C than me.
  9. Replies
    17
    Views
    15,509

    OK thanks guys, yeah i couldn't find strnlen, but...

    OK thanks guys, yeah i couldn't find strnlen, but there is strlen there. I was told this may be bad to use because of potential buffer overflows, but I guess I'll just use this instead.
  10. Replies
    17
    Views
    15,509

    I am pretty sure strnlen resides within the...

    I am pretty sure strnlen resides within the string.h header, and I have included it there...
  11. Replies
    17
    Views
    15,509

    strnlen, implicit declaration?

    Hi,

    I am in my second year of Computer Science and have just been introduced to C this term. Coming from a JAVA background I must say it is slightly daunting, but I'm sure I'll pick it up...
    ...
Results 1 to 11 of 11