i solved the problem,
thank you.
Type: Posts; User: mcaro72
i solved the problem,
thank you.
o.k
but instead of getch(), tell me what to use?
well, i'm working with Borland C++, it is not necessary to write ".h" at the end.
About the others libraries, i do not use for the moment.
I just took part of a program and posted it.
Hello everybody,
see this program
#include<stdlib>
#include<stdio>
#include<conio>
#include<iostream>
using namespace std;
Thank you all(Daved,et al.)
I solved the problems,
The problem was with the function.
Gracias!!!!
i am tryng.
I dont know how to solve this problem, the problem remains!!!!
i mean I took
You are right,
i ook this part of program and execute it and works! That is the error is not about casting..
thii is the program
#include<stdio>
#include<stdlib>
#include<iostream>...
well, the function is O:K, the error appears before the function works
no, i did not miss anything
I thought that the problem was the "CASTING", c is float, n is integer...
yeah, it has stable solution every interval -PI/2 + kPI,PI/2 + kPI, k belongs to integer set
here it goes the original
#include<stdio>
#include<stdlib>
#include<iostream>
#include<math>
#define PI 3.14159265358979324
using namespace std;
well, i forgot to put ";" in
float z= 1/2.0-x*tan(x)+x
but...
yeah!
O.K. Daved, this is the program
#include<stdio>
#include<stlib>
#include<iostream>
#include<math>
#define PI 3.14159265358979324
using namespace std;
Well , the error remains, this is the excact error:
"Project iterarmulti.exe raised exception class EInvalidOp with message 'Invalid floating point operation'. Process stopped . Use Step or Run to...
i'm going to probe,
P.S. I'm working with Borland C++ 4.0
yes, i removed #define and put const double Pi ... but remains the error
Thanks, but i made the change and the error remains "invalid floating overpoint"
Hello Everybody,
I ve got this error "Invalid floating point operation" whne i compile this:
...
#define Pi = 3.141596
...
float c;
int n;