Search:

Type: Posts; User: Jeb.

Search: Search took 0.00 seconds.

  1. The PTHREAD_MUTEX_INITIALIZER macro initializes...

    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...
  2. Replies
    3
    Views
    1,804

    Omnius: Thankyou, what you told me coupled with a...

    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...
  3. Replies
    3
    Views
    1,804

    Null character and string object

    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...
  4. Replies
    4
    Views
    1,978

    There is no "one-set-function" to return a file...

    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...
  5. Replies
    11
    Views
    4,090

    Heh, wow. I actually didn't know that you could...

    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
  6. Remember that the indexes of an array of...

    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.
  7. The reason your or statement doesn't work as you...

    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....
  8. Replies
    3
    Views
    2,475

    Re: Changing text size in a program

    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...
  9. I believe the reason for that is this: you...

    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...
Results 1 to 9 of 9