[deleted by poster]
Type: Posts; User: Cynic
[deleted by poster]
I tend to avoid GPL due to viral licensing issues.
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...
Because it's not a pointer.
Then by all means, please show an example where you can assign a new address to an array.
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...
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...
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.
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;
...
I have an N64 I still play now and then.
Wouldn't that be better handled by a boolean conditional rather than an actual sleep function?
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...
/*!
* 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...
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:
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.
...
I'd recommend receiving it as a pointer:
void simpleEncrypt(char *input)
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...
Yeah, directx is pretty overwhelming. You may want to start with an external lib, like Ogre3D.
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.
Floating point imprecision.
In VC++ Express 10, price is NOT 4.10, but 4.0999999999999996, therefore, tempcent ends up being 9.9999999999999645.
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?
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...
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`
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...
Yes, provided you don't overwrite the bounds of the array.