No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Re:
I am having problems using the square root function in my program. I have included <cmath> outside of main and my formula using the square root looks like this: area=sqrt(s*(s-a)*(s-b)*(s-c)); but, I keep getting an error that says 'sqrt' cannot be used as a function. I would appreciate any suggestions. … |
|
Re:
I am doing Project Euler Problem 3, but I seem to get stuck. I have written some code that makes sense (at least to me) but keeps printing the answer to 137. This is the problem: The prime factors of 13195 are 5, 7, 13 and 29. What is the … |
|
Re:
Here is the input.txt file that I have. [code]2 5 -2 3 1 2 4 0 1 2 1 0 [/code] These are 2 polynominals. 2x^5 - 2x^3 + x^2 + 4 and x^2 + 1 while <3,5> : 3 is the coefficient, 5 is the degree. I just can … |
|
Re:
I've been learning C/C++ and I'm currently doing an ATM project. It all works fine but I would like to improve it so when i quit the program and it will load the data used previously. currently I use a struct like this [CODE]struct database { int pin, sort, account, … |
|
Hi, I'm trying to use an input device like a joystick as a mouse, and I've got some good behavior for desktop use by polling the state of the device in a loop and doing some work with the values, then using SendInput with some INPUT structures to make the … |
|
Re:
Hey there, so I am new to this forum and to C++ it is my first year in computer science and I am having some problems with this assignment, which is easy enough but I have hit a hitch and would appreciate if someone could point me in the right … |
|
I have a fairly good understanding of C++'s C side and little bit about classes, so.. I'm wondering, is there an easy way to learn WIN32 application programming? I mean using [code] int APIENTRY WinMain() [/code] window procedures, creating buttons, etc.. Is there a way to avoid things like "String^" … |
|
Re:
Hi, My problem is that in my C++ program (not written yet!) I have to login to a website (like [url]www.example.com[/url]) first. Simply I don't know how to do this! I did not find any useful tutorial or code by searching. I would be so grateful if you can help … |