Search:

Type: Posts; User: Cynic

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    3,241

    Raw input from a HID joystick

    [deleted by poster]
  2. Replies
    5
    Views
    4,443

    I tend to avoid GPL due to viral licensing issues.

    I tend to avoid GPL due to viral licensing issues.
  3. Replies
    1
    Views
    20,989

    49 and 50 are the numerical equivalent of the...

    49 and 50 are the numerical equivalent of the characters '1' and '2' in base 10 decimal. That is understandable since you have defined the data types for row elements as ints, not chars. When you...
  4. Replies
    11
    Views
    2,498

    Because it's not a pointer.

    Because it's not a pointer.
  5. Replies
    11
    Views
    2,498

    Then by all means, please show an example where...

    Then by all means, please show an example where you can assign a new address to an array.
  6. Replies
    11
    Views
    2,498

    Um...while I understand you're trying to be...

    Um...while I understand you're trying to be brief, this is incorrect and I believe this lack of elaboration is a root of the misconception that arrays are, or the same as, pointers.

    To the OP, an...
  7. Replies
    1
    Views
    3,414

    OK, this is going to be a "disregard." I'm going...

    OK, this is going to be a "disregard." I'm going to assume it doesn't report correctly anymore, if it did ever, and just worry about the axis and buttons. I'll share what I make if anyone shows an...
  8. I don't agree with this, but I will add that...

    I don't agree with this, but I will add that using a goto should be the absolute last resort when nothing else will work. I think I've used a goto once, ever.
  9. Replies
    1
    Views
    3,414

    DirectInput devicetype and subtype issues.

    This is odd and I'm beginning to wonder if the dwDevType field of:



    typedef struct DIDEVICEINSTANCE {
    DWORD dwSize;
    GUID guidInstance;
    GUID guidProduct;
    DWORD dwDevType;
    ...
  10. Replies
    6
    Views
    2,605

    I have an N64 I still play now and then.

    I have an N64 I still play now and then.
  11. Replies
    6
    Views
    4,004

    Wouldn't that be better handled by a boolean...

    Wouldn't that be better handled by a boolean conditional rather than an actual sleep function?
  12. Replies
    6
    Views
    2,005

    Only if he wants to do 2D games. Otherwise, he...

    Only if he wants to do 2D games. Otherwise, he should work in 3D if he wants to do 3D.

    mum, on top of your C++ book, you will likely find "3D Math primer for Graphics and Game Development" useful...
  13. /*! * Add to each letter with its index in the...

    /*!
    * Add to each letter with its index in the given input.
    * Sample: "Good" becomes "Gpqg"
    *
    !*/
    char mediumEncrypt(char input[]); <<< Wrong. All your prototypes should be changed to...
  14. Why do you have an array for encrypt when it's...

    Why do you have an array for encrypt when it's only taking a single character? Chance it to a single char



    char input[20], encrypt;


    Change the input function to:
  15. What does the call of simpleEncrypt look like?...

    What does the call of simpleEncrypt look like? You'll need to change your prototypes.

    This:



    /*!
    * Replaces each letter in the character array wih its next lexicographical
    * letter.
    ...
  16. I'd recommend receiving it as a pointer: ...

    I'd recommend receiving it as a pointer:



    void simpleEncrypt(char *input)
  17. In the call to your encryption procs: char...

    In the call to your encryption procs:



    char simpleEncrypt(char input[20])


    You're designating a return of a single char data type, but you're returning only the first character of your...
  18. Replies
    6
    Views
    2,005

    Yeah, directx is pretty overwhelming. You may...

    Yeah, directx is pretty overwhelming. You may want to start with an external lib, like Ogre3D.
  19. There is an infinite number of reals between 4.09...

    There is an infinite number of reals between 4.09 and 4.1, however, the computer has a limited number of bits to represent decimal numbers.
  20. Floating point imprecision. In VC++ Express...

    Floating point imprecision.

    In VC++ Express 10, price is NOT 4.10, but 4.0999999999999996, therefore, tempcent ends up being 9.9999999999999645.
  21. Replies
    16
    Views
    20,994

    This is pretty crucial. Is it one value/line?...

    This is pretty crucial.

    Is it one value/line? Multiple values on a line? Is there even lines at all or is it one long block?
  22. Replies
    16
    Views
    20,994

    If the number of values is not fixed, you'll need...

    If the number of values is not fixed, you'll need to make use of dynamic allocation on a 2D array of pointers to the values. Also, depending on how to plan to keep them in memory will have an...
  23. Replies
    6
    Views
    1,094

    C++ array indexing starts at 0, so: for( i...

    C++ array indexing starts at 0, so:



    for( i =1;i<n;i++)
    {
    scanf("%d \t %d \t %d \t",&number,&number2,&number3);
    rollno[i] = number;
    sub1[i] = number2;
    sub2[i] = number3;x`
  24. Replies
    5
    Views
    1,377

    Not all of game programming is graphics. I'm...

    Not all of game programming is graphics. I'm currently working on a map of functors to map input to actions to take, with the key possible coming from another map, so I'm using C++.

    What...
  25. Replies
    13
    Views
    6,494

    Yes, provided you don't overwrite the bounds of...

    Yes, provided you don't overwrite the bounds of the array.
Results 1 to 25 of 134
Page 1 of 6 1 2 3 4