Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: OReubens

Page 1 of 80 1 2 3 4

Search: Search took 0.12 seconds; generated 47 minute(s) ago.

  1. Re: Need help allocatig memory for vectorized 2D array

    for a "simple" approach to a 2D class, here's a concept, you'll need to fill in some the blanks... :p




    template <typename T> // todo: may need allocator
    class twodee
    {
    public:
    ...
  2. Re: Need help allocatig memory for vectorized 2D array

    a vector of vectors is NOT a 2D array

    if you want a 2D array, then you can 'sort of' simulate this with a vector of vectors, but it has a number of issues that may or may not be relevant to you. ...
  3. Replies
    3
    Views
    180

    Re: App -- Engine interaction need help

    You cannot realistically develop a usable game engine model/concept if you have never made games.

    It's the experience at making games and how design choices affected your outcome that will teach...
  4. Replies
    3
    Views
    180

    Re: App -- Engine interaction need help

    Any part of your game that is generic enough that you could reuse it in a totally new game, probably should go into "engine"

    There is Always going to be a grey area in that. If you make a 3D...
  5. Re: adding rational number using only class functions

    Bingo.
    That is the proper way to avoid the overflow entirely.
    And on top of that it's better, because you have moved calculations of your test (every time through the loop) into the initialisation...
  6. Re: adding rational number using only class functions

    My point being. unsigneds or signeds aren't goign to save your live. So advocating "use signeds for indexes because" is just going to happen for unsigned as well.



    see next...



    That...
  7. Re: What is The Best Language To Develop An Applications For POS System

    If your app needs to handle different types/brands of POS and cash registers: go C/C++.
    this is going to be your go-to language for all interfacing.

    Some systems have COM objects and thus allow...
  8. Re: adding rational number using only class functions

    because indexes that could become negative aren't going to cause errors ? :D

    Actually... "the value should never be negative" is a very good reason to make it an unsigned type.
    What people often...
  9. Re: adding rational number using only class functions

    Well... You can, just be aware of what's going to happen.
    This isn't much different from many of the other types of calculations, like mixing integer and floating point.

    I found the advice to use...
  10. Replies
    4
    Views
    179

    Re: Check a Point lies in a Line segment

    Also note that if your question is about PIXEL positions lying on rendered (pixelated) lines, then the above formula (and 2kaud's) will require a considerable tolerance, so much in fact it may be...
  11. Replies
    4
    Views
    179

    Re: Check a Point lies in a Line segment

    Due to how a floating point works...

    It is generally speaking impossible to make a check whether a point lies on a line segment. floating points by their very nature are not accurate enough for...
  12. Replies
    27
    Views
    1,566

    Re: CPU at 100% when using AfxBeginThread

    It doesn't matter how you do the sleep...

    If your code has a "hard" wait in it programmed as a Sleep, SleepEx, for-loop, while-loop, waitable timer, counting sheep, waiting for you to finish...
  13. Re: adding rational number using only class functions

    yes, it DOES do that. but...

    Why does a consumer of your class interface need to be made aware that the implementation won't "accidentally" change parameter values when this doesn't matter to the...
  14. Replies
    3
    Views
    237

    Re: topics about lists 3 hard questions

    wait... a "simply linked list" ? wot ?

    more teachers failing at properly asking questions ?
  15. Re: A tree-like data structure inspired by XML

    This is technically incorrect. The node XML node can have only 1 namespace.
    it's the attribute child elements of the node that have their own (single) namespaces


    you can parse and store an...
  16. Re: adding rational number using only class functions

    it does, but...

    You're loading your public interface with "pointless information" and possibly confusing the class consumer.
    For the caller it doesn't matter at all whether the implementation...
  17. Re: How to change the client area icon during runtime

    cursor = what people often (incorrectly) call mouse pointer. It's incorrect because you can have a "mouse pointer" even if your system doesn't have a mouse. It can have a TrackBall, or a cursorpad,...
  18. Re: How to get notified when a socket has data to be read in Winsock?

    Changing to IOCP from regular per-thread-blocking calls is goign to be a challenge and will need a major rewrite of the IO code.

    192 sockets is "about on the edge" of what you can feasibly handle...
  19. Replies
    27
    Views
    1,566

    Re: CPU at 100% when using AfxBeginThread

    Sleep() (or any other method for achieving the same such as long for-loops) is bad in production code for just about anything other than
    1) testing purposes (to simulate a lengthy process or delay...
  20. Re: adding rational number using only class functions

    also:


    Rational::Rational(const int denominator, const char sign) // the constructor


    While not technically invalid, it is entirely pointless to make POD value types const.
  21. Re: adding rational number using only class functions

    The AddUp() should be done in exactly the same way as you add rational numbers using pen and paper. That should be Obvious enough to do, since this is obviously homework/school assignment, we aren't...
  22. Re: How to get notified when a socket has data to be read in Winsock?

    Making a thread per connection is an easy way out for a "small scale" app, but it doesn't work well if you need, as you put it "hundreds of connections". Threads are a fairly expensive OS resource....
  23. Replies
    21
    Views
    476

    Re: Difference between .csv and .ini file

    The file you're describing is not what is commonly understood as a "ini" file. So you should avoid giving it that extention.
    it appears to be a csv, so the better idea is to give it the .csv...
  24. Replies
    6
    Views
    290

    Re: Variable declaration syntax?

    for what it's worth, there is a tendency in C++ to prefer the initializer syntax
    type_declaration variable_name(initializer_value);
    over the "assignment" syntax
    type_declaration...
  25. Re: WM_KEYDOWN Not Working with Multiple Keys

    I still is that same stereotype :D
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center