Search:

Type: Posts; User: pianorain

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    2
    Views
    2,839

    I found the following link to be useful for my...

    I found the following link to be useful for my own understanding of how structs are arranged in memory: Struct declaration - cppreference.com
  2. Replies
    6
    Views
    5,300

    Oh, I like this thread. It's very welcoming.

    Oh, I like this thread. It's very welcoming.
  3. Replies
    2
    Views
    1,180

    The development machine had two. The server...

    The development machine had two. The server machine had eight.

    The server did have a lot of RAM, but I don't think much of it was committed to hard drive caching. Most of it was used by the...
  4. Replies
    2
    Views
    1,180

    Hard Drive File I/O Help

    I'm pretty ignorant about many computer hardware topics. I've been banging my head against this for a couple of days, and then I figured I should ask people who might be able to help.

    At a...
  5. Replies
    20
    Views
    7,379

    Nope, that's fine. Given that was the entirety...

    Nope, that's fine. Given that was the entirety of the program, notice that there are no references to the object created from the first new after the second new has been performed. The GC will...
  6. Replies
    20
    Views
    7,379

    You don't; the GC handles that for you. Just...

    You don't; the GC handles that for you. Just make sure you don't have any references to what you want to clean up, and the GC will (one day, hopefully) take care of it.
  7. That's entertaining, considering I had the exact...

    That's entertaining, considering I had the exact same feeling about your post.

    At least this saves me from wasting time looking through the code that just finished downloading.
  8. Replies
    5
    Views
    1,557

    QFT. WPF apps have a marginal chance of...

    QFT. WPF apps have a marginal chance of converting over to Silverlight with a minor amount of hassle, but that's about it.
  9. Replies
    12
    Views
    2,591

    Yeah, you should probably ignore my first post. ...

    Yeah, you should probably ignore my first post. I'm still a bit groggy. ;)

    What does it mean to "remove" an instance from your array? Do you have to shorten the array, copying all the instances...
  10. Replies
    12
    Views
    2,591

    I don't fully understand what you're asking. Let...

    I don't fully understand what you're asking. Let me suggest a solution, and you tell me why it wouldn't work.

    Assuming your structure was named Struct, I'd use a SortedDictionary<Struct,...
  11. Replies
    3
    Views
    2,125

    Sure. My freelance rate is $100 USD an hour. ...

    Sure. My freelance rate is $100 USD an hour. Forward your billing information and we can get started.
  12. Replies
    20
    Views
    5,813

    There is no debate. The C++ standard requires...

    There is no debate. The C++ standard requires main() to return an int.
  13. Thread: Vampires

    by pianorain
    Replies
    15
    Views
    5,939

    While generous, you've needlessly bumped a 7 year...

    While generous, you've needlessly bumped a 7 year old thread in the C++ forum with C code. Please read the Forum Guidelines before posting.
  14. Replies
    6
    Views
    2,508

    Neat idea. Since my IDE allows you to collapse...

    Neat idea. Since my IDE allows you to collapse sections of code that won't be compiled due to the preprocessor, that's really handy.
  15. Replies
    5
    Views
    1,468

    I'd do something like this: void...

    I'd do something like this:
    void xorEncrypt(string& str, const string& key)
    {
    int strLen = str.length();
    int keyLen = key.length();

    for(int x=0; x < strLen; x++)
    {
    ...
  16. Replies
    10
    Views
    5,587

    Ha. After re-reading your post without the first...

    Ha. After re-reading your post without the first sentence, it sounds right. I think just the wording of the first sentence made me think you were going down the wrong path. My bad.
  17. Replies
    10
    Views
    5,587

    Everything the prof says in the video is correct,...

    Everything the prof says in the video is correct, but your explanation of it is wrong. Take a good look at the formula the prof writes on the board explaining how the parts of a single-precision...
  18. Replies
    6
    Views
    7,186

    8 year old thread. Nice one.

    8 year old thread. Nice one.
  19. Replies
    9
    Views
    1,967

    I agree. If you want to do something every time...

    I agree. If you want to do something every time the value changes, use ValueChanged. If you want to do something with the final value, use LostFocus or Validated (if you've turned on validation for...
  20. Replies
    13
    Views
    6,254

    Not quite.For example, for the following unsorted...

    Not quite.For example, for the following unsorted data:
    9 3 5 7
    3 8 5 1
    4 2 7 5
    1 5 3 7
    2 4 6 1the sorted data would look like this:
    1 2 4 6
    1 3 5 7
    1 3 5 8
    2 4 5 7
  21. First, read this:

    First, read this: << !! Posting Code? Read this First !! >>

    Second, this is just the code-behind. The UI is all in the XAML.

    Third, what is your question? You've got event handlers for...
  22. Replies
    9
    Views
    1,967

    Have you thought about using the Validated or the...

    Have you thought about using the Validated or the LostFocus event instead of ValueChanged?
  23. Replies
    8
    Views
    2,351

    Alternately, if both methods are so fast and the...

    Alternately, if both methods are so fast and the main thread must wait for them anyway, why not use blocking calls?
  24. Replies
    16
    Views
    22,148

    This thread is nearly two years old. I think...

    This thread is nearly two years old. I think Bubba has taken care of it by now.
  25. Replies
    16
    Views
    6,592

    Not that this matters a great deal, but you only...

    Not that this matters a great deal, but you only need to bitwise-and with 0xffffff in one place:
    private void CheckSelectFirework(Point point)
    {
    foreach(Firework firework in Fireworks)
    {...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4