Click here to Skip to main content
15,867,568 members

Comments by Andrew Phillips (Top 6 by date)

Andrew Phillips 28-Feb-11 9:24am View    
I'm a bit confused as to whether you are getting file not found problem when you build or when you run the program. Ini files are normally used at run-time but you appear to have added it to your project for some reason. I am also not sure why you mention the include directories path.

Assuming the problem occurs at when running your program it is probably that rpmtrhclient cannot find it. If this is a DLL it may be being picked up from a different location than you expect. Windows now searches for DLLs in some standard locations (such as the Windows System32 directory) before looking in the current directory and .EXE directory. (This was chnaged to plug some security holes.)
Andrew Phillips 7-Nov-10 21:22pm View    
Deleted
Reason for my vote of 1
Many problems: unnecessailly complicated, sqrt() domain error, divide by zero, non-English variable names
Andrew Phillips 7-Nov-10 21:19pm View    
Deleted
Reason for my vote of 2
Inefficient and does not handle divide by zero.
Andrew Phillips 7-Nov-10 21:16pm View    
Deleted
Reason for my vote of 1
Many problems esp. that ^ is not power operator.
Andrew Phillips 7-Nov-10 21:14pm View    
Deleted
This is better than the others as you avoid the domain error in sqrt(). A couple of things:
- pow(b, 2) is better written as b*b
- it's probably better not to evaluate sqrt(d) twice
- the original returned two floats, you should return an error instead of complex numbers