Thanks for the tip re: >> . I think I have sorted it now, I hadn't declared metricNames properly!
Type: Posts; User: AngryStyro
Thanks for the tip re: >> . I think I have sorted it now, I hadn't declared metricNames properly!
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...
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.
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...
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...
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.
...
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...
Yes, I didn't exactly follow there either but took their word for it since they have more experience in C than me.
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.
I am pretty sure strnlen resides within the string.h header, and I have included it there...
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...
...