u8sand 68 Junior Poster

I don't expect febonacci numbers to be negative, so why not use unsigned, it will give you twice the amount you can go.
And %d calls an integer, not a long (so it will only show what an integer would show if it was at that value)
I would also recomend using int main() instead of void main().

Salem commented: It's not a recommendation, it's the law! +36
u8sand 68 Junior Poster

The atoi function returns an integer from a string. So:

char buf[256];
// Ask for input here
cin.getline(buf,256);
int num = atoi(buf);
if(num == 0) // atoi returns 0 if it is invalid
    cout << "Error";

Which is why you retrieve the input with a string (because a string can handle any text input) and turn it into an integer if its valid.

u8sand 68 Junior Poster

The atoi function returns an integer from a string. So:

char buf[256];
// Ask for input here
cin.getline(buf,256);
int num = atoi(buf);
if(num == 0)
    cout << "Error";
Thmyris commented: Helped so much ! Thank you ! +0
u8sand 68 Junior Poster

This isn't much "help". This is just saying: Make me a sudoku solver. We can give you a few hints but no one is going to make a sudoku solver just because you posted it here...
If your going to ask for something, please ask in a correct manner.

Salem commented: Well said! +29
u8sand 68 Junior Poster

dono what this does really but who knows its worth a try

if(tfgame.ToggleWarhead == True)
			        {
			            SMNameArray[6] = "Warhead (3000/180)";
			            SMIndexArray[6] = 7;
                                    SMArraySize=7;
			        }

maybe replace True with true?

just to be safe just make it:

if(tfgame.ToggleWarhead)
			        {
			            SMNameArray[6] = "Warhead (3000/180)";
			            SMIndexArray[6] = 7;
                                    SMArraySize=7;
			        }

maybe that works?

ddanbe commented: Nice! True is not always true. +3