Search:

Type: Posts; User: inequity

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    16
    Views
    2,087

    I'd recommend programmingpraxis...

    I'd recommend programmingpraxis and project euler for some fun ways to practice problem solving and improving your coding speeds.
    Project euler seems to be down at the moment though. Hopefully it...
  2. Replies
    16
    Views
    2,087

    I'd recommend programmingpraxis...

    I'd recommend programmingpraxis and project euler for some fun ways to practice problem solving and improving your coding speeds.
    Project euler seems to be down at the moment though. Hopefully it...
  3. Post some real code!

    Post some real code!
  4. So I fixed it up a bunch, but I can't seem to get...

    So I fixed it up a bunch, but I can't seem to get around needing the constexpr constructors to access those values.
    It complains that I can't use the values from a static array in a constant...
  5. Hey, just wanted to say I fixed it! Thanks for...

    Hey, just wanted to say I fixed it! Thanks for the help Soma

    For anybody who's interested: http://pastebin.com/6StzYjVw
  6. Thank you. Seeing it laid out like that makes...

    Thank you. Seeing it laid out like that makes things much more clear.
  7. Thread: Nested class

    by inequity
    Replies
    4
    Views
    1,130

    The first example that comes to my mind is...

    The first example that comes to my mind is iterators in the STL.

    To my knowledge, the containers in the STL implement their own versions of all iterators privately (probably as nested classes),...
  8. Compile time FizzBuzz error (C++11 / Templates / String Literals)

    So I was trying to write a compile time version of FizzBuzz, but I'm having a problem.
    And I can't seem to figure it out.

    It could be something really simple and stupid, but at this point I'm...
  9. Replies
    2
    Views
    1,044

    Anything is possible, including this, but this...

    Anything is possible, including this, but this not trivial to implement in C++. You'd have to consider operating system and then learn a lot about it to make this happen.

    For this specific...
  10. Replies
    5
    Views
    1,368

    In terms of i++ and i+=1, they are both pretty...

    In terms of i++ and i+=1, they are both pretty readable, and will generally be compiled into the same thing.

    It's really your call, but because the increment operators are part of the language, I...
  11. Replies
    13
    Views
    14,118

    I tried to edit it a bit to see some things I...

    I tried to edit it a bit to see some things I would do, but I kind of forgot where I was at in there. Anyways, maybe I did something helpful? If you find anything in there interesting let me know and...
  12. This looks helpful....

    This looks helpful.
    And so does this.

    But if you're just learning how to program, I'd recommend starting smaller. Perhaps try writing a chess game where you play against yourself first.
  13. Replies
    7
    Views
    1,580

    If you need to draw pixel by pixel using only...

    If you need to draw pixel by pixel using only integers, I would suggest just rounding in whatever function you have actually setting those pixels. It will help keep your code clean and readable. The...
  14. Replies
    7
    Views
    2,357

    Have you run a profiler on it? Would probably be...

    Have you run a profiler on it? Would probably be way more helpful than task manager at determining what could be optimized.
  15. Replies
    3
    Views
    1,055

    Let me google that for you...

    Let me google that for you

    What's the error?
  16. Replies
    6
    Views
    1,151

    hahahahaha

    hahahahaha
  17. Replies
    14
    Views
    1,753

    Okay I understand what you're saying, but I have...

    Okay I understand what you're saying, but I have no idea why you'd want to avoid using structs. In a program of this scope, I just don't see a point in not using them.

    In C, structs aren't very...
  18. Replies
    10
    Views
    16,627

    that is such gorgeous code. now go write it in...

    that is such gorgeous code. now go write it in LISP in one line. someday our whole computers will be one giant ternary operation!
  19. Replies
    4
    Views
    961

    ok, so if you want n to be the number of times...

    ok, so if you want n to be the number of times the character is printed, try to structure your loop like this


    for(int i = 0; i < n; i++)
  20. Replies
    4
    Views
    3,550

    Yeah, if you're able to pull out the raw pixel...

    Yeah, if you're able to pull out the raw pixel data, saving as a bitmap is actually really easy.
  21. Replies
    9
    Views
    12,499

    Can you post the code?

    Can you post the code?
  22. Replies
    13
    Views
    2,509

    The introduction to the assignment made it sound...

    The introduction to the assignment made it sound really advanced, I was going to suggest markov chains and maps, but since you're only finding the frequency of individual characters in a text, here's...
  23. I think we'd be more able to help if you...

    I think we'd be more able to help if you commented this a bit better.
    This is a really specific question, and is hardly based on C Programming at all, so without knowing the inner workings of this...
  24. Replies
    9
    Views
    12,499

    Microsoft Visual C++ Tips and Tricks...

    Microsoft Visual C++ Tips and Tricks

    Check that out.



    So this means that your array was allocated on the heap, but hasn't been initialized. Instead of just being full of completely garbage...
  25. Replies
    15
    Views
    2,035

    For any null terminated strings, which is what...

    For any null terminated strings, which is what you're setting the string to match, you want to use double quotes. Single quotes are generally used for single characters.

    This syntax would work

    ...
Results 1 to 25 of 59
Page 1 of 3 1 2 3