What *exact* type (a) does player.getGold() return, and (b) is mGoldRequired defined as? Specifically, are either of them unsigned? It's not...
Try displaying the value, e.g. cout << "You dont have enough gold for that (you have " << player.getGold() << " but need " << "mGoldRequired <<...
What's with all the asterisks? Makes the code very unreadable. Use spaces for indentation and code blocks when posting code here to preserve...
It's a bit pointless having a function that just takes one line of code. Better just to use those single lines of code instead of calling the...
Yes, you can do it manually, but that would be very tedious and if you want to program at that level you'd be better off doing it in machine code....
Have you tried compiling it? Did you get any errors? You need a break at the end of each case (unless you mean for it to run into the next one,...
No, C doesn't dereference pointers unless you use *, i.e. you would get the difference between the contents if you did i = *q - *p; The reason...
If I read the code correctly then the line where you calculate the data point is this: res = amplitude_scale * sin(phase) * maxval; So it's...
Bit tricky as several variables that have a bearing are not defined (freq, rate, amplitude and probably others); you don't say what output you DO...
No, hang on, I got that wrong. If x is of type char** then *x will be of type char*. Running through the code in the debugger, replacing the...
No, if **x is a pointer to a pointer, then *x is not what the pointer to the pointer double-points at; that would be **x. *x points to the...
If you wrote that code you would be able to figure it out.
*x is of what type? And what exactly happens when you ++ one of those? You're not doing exactly the same thing; a+1 is not the same as *x++....
What is the exact output that you get when you run this program?
Well, OK, then the question is ambiguous: First part "calculating the square root of int n only once", to which the answer is yes. Second part...
Yes you were: int i; Int i now declared a 2nd time
Also why is the prototype commented out? Without this the compiler will assume list_insert is defined int list_insert(); so if you don't want...
Well, 1. What does the program print if you run it? Give it some input, say 9, maybe run it a few times with other numbers, and see what it...
It's misleading to state that i has been declared a second time. Local variables are local to a function and have no global effect. The i local...
Which post did admin delete? It wasn't this one: http://www.go4expert.com/showthread.php?t=26487 If a post was deleted then you would have been...
Separate names with a comma.