The PTHREAD_MUTEX_INITIALIZER macro initializes the pthread_mutex_t structure when you first declare it.
You cannot assign the values to a struct using the curly-brace syntax (which is what that...
Type: Posts; User: Jeb.
The PTHREAD_MUTEX_INITIALIZER macro initializes the pthread_mutex_t structure when you first declare it.
You cannot assign the values to a struct using the curly-brace syntax (which is what that...
Omnius: Thankyou, what you told me coupled with a bit of research of my own answered my question.
gustavosserra: That's true, but after reading the definition for std::string I found that it's...
Hi folks,
Just a quick question: what is so illegal about the following line of code? That is, why would it throw an exception?
std::string someStr='\0';
If I define someStr first, and...
There is no "one-set-function" to return a file creation date, as far as I'm aware. In fact, I'm not certain if you can even determine a file creation date.
Your "closest" option would probably...
Heh, wow. I actually didn't know that you could do that (that's what I get for never coding Win32 API). It sounds pretty neat, keep it up :D
Remember that the indexes of an array of characters start at 0. So where your loop says x > 0, it should really be x >= 0.
The reason your or statement doesn't work as you expect is because it will always be "true".
You need to change it so that you say if sentence[x] is a space, OR sentence[x] is a null character....
Depends on what you mean. It can't be done if you print straight to console, as far as I know (I don't see why you would need to anyway ;)). But if you were to do it in a GUI environment, it would...
I believe the reason for that is this: you defined words as an array of 15 char elements. But, you're trying to assign to it an array of char elements, not just a single char.
You would have to...