Alright, maybe I was not clear.
The following code compiles, no errors, it runs normaly until the ACHA_FI_P() function is called.
Then nothing happens, I can't know if the program is in an infinite loop because i couldnt debug it with Dev C++, or if it crashes, but the printf after the function...
Does anybody have any idea why this code doesnt work?
the error is in the ACHA_FI_P() function... the problem is I couldnt debug this code using dev c++, anybody know a good debugger?
the ACHA_FI_P function is to resolve 2 equations to find values of Fi2 and Fi3 that zero W and Z. any help will...
Error: Incompatible type conversion
Z=((sqrt(Alfa23_linha)*Tetaliq*Rms*exp(-Alfa23_linha*Fi3*Fi3))/(ERF(sqrt(Alfa23_linha)*Fi3)-ERF(sqrt(Alfa23_linha)*Fi2))+(sqrt(Beta23)*Rls*Tetai*exp(-Beta23*Fi3*Fi3))/(ERFC(sqrt(Beta23)*Fi3))-(sqrt(3.14)*Fi3*Fliq)/(St));
OBS: everything is double
Error...
Hi all,
I am using charts to draw some XY graphs, until here no problem. There is also a report in another window, in which i wish to copy the graph to. I used the following code:
//To plot the graph
int p;
double c[500],b[500];
for(p=0;p<500;p++)
{
c[p]=p;
b[p]=3*p...
I am using QuickReport and am trying to make a report with more than one page. I tried to create two reports in diferent forms, separate, and then in the main form I put a preview button and a composite report to put both reports together, however on the preview just appears the last page added...
In my form FMain, I use values given in the Edits to do some calculations on button click. I need to use the results of some of these calculations on another form. So should I do it like:
class Main : public TFMain
{
public:
Alfa1; //The result of a calculation done in FMain
}
I am using Builder 6 and QuickReport for printing. The preview does not show anything, I do not know if i programmed it right anyway. Where can i find something good to study the QRep??
Thanks
i wanted to do the following:
"If RadioButton1 AND RadioButton2 ARE NOT checked, send message "Check one", else blabla"
i tried like this:
if((RBtnIsot->Checked==false) ,(RBtnIsoc->Checked==false) )
{
MessageDlg("Choose the simulation.", mtError, TMsgDlgButtons() << mbOK, 0);
}
else
{
...
but...
Is there a way that the user is only able to put numbers in an Edit box?
I tried to program so that a warning would be sent if a letter was typed but i couldnt manage. Would have to do too many comparisons and there are too many edit boxes.
Any body can help?
No no, i mean in the Edit Box i use a value like "1.2546", that is not an integer.What i want is to do some calculations with the numbers given in the edit boxes.
Using both codes above gives me the same error, but it works fine for integers.
i think i m missing an #include<>
or what could it...
Do i have to #include some other lib to be able to include those functions?
For me it gives an error when i put a fraction in the edit like:
class EConvertError with message"1.23 is not a valid floating point value
How do i convert the number given in an Edit box to double for calculations? Only found how to convert ansistring to int:
K=StrToInt(Edit1->Text);
How do i do that but to double??
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.