| marius7122 a întrebat:

am o problema la o aplicatie in C++, la compile imi zice ca e bine, dar dupa aceea imi apare un mesaj de eroare:
ADUNAREF.EXE
Floating Point:Square Root of Negative Number.
Problema este:
#include
#include
float ma;
long x, q;
void main()
{
ifstream n("C:\\BORLANDC\BIN\numere.in.txt");
ofstream m("C:\\BORLANDC\BIN\mici.out.txt");
ofstream f("C:\\BORLANDC\BIN\mari.out.txt");
>>while(nx)
{
>>nx;
ma=ma+x;
q++;
}
ma=ma/q;
>>while(nx)
{
>>nx;
>if(xma)
m