- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
9 Posted Topics
[QUOTE=Kazastankas;141590]Wouldn't that trap high at 1 and low at 0? Perhaps 1, 1 are what you meant as starting vars.[/QUOTE] yeah, its 1 1. But now the problem is the long. This would work only till n = 46. What if I wand fib (100)? Any suggestions? Regards
Hi everyone. I am creating a small windows form application using Visual C++; and I would need to delay a loop by a second. Sleep() doesn't work.(Not sure why) Is there a way I can use the timer? Any suggestions on how can I do that? Thanks in advance. :)
Yeah, from line 38 everything seems to be messed up. Could you please explain more about the binomial number please. What exactly are you supposed to find?
Hello. Can someone please tell me how can I get the Text from the textBox, and store it into a string for instance. To be more specific, I have a function: [CODE]foo (const char* str, const char *strat);[/CODE] And when I call it, I want it to take the the …
Hello Everyone. I am creating this Windows Forms Application using Visual Studio. Basically, in order to do what I want to do, I need to use an integer, and that integer needs to be converted into a string in order to change the label text, when pushing the button. However, …
here, check this out: [url]http://msdn.microsoft.com/en-us/library/fxky5d0w(VS.80).aspx[/url]
You wrote that [QUOTE] distance = sqrt( (x1-x2)^2) + ((y1-y2)^2).. .[/QUOTE] and you are multiplying it by 2, instead of doing a power to 2. That is why you are getting a wrong answer. [QUOTE] double distance(double x1,double x2,double y1,double y2) { return sqrt((2*(x1-x2))+(2*(y1-y2))); }[/QUOTE] instead you should have double …
Use this to figure out if the number (string) is a palindrome or not... the rest, the file handling, try doing it by yourself, it is very easy.. if you have troubles doing that, let me know. :icon_wink: #include <iostream> #include <string> using namespace std; int main () { int …
The End.