|
|
вернуться в форум!!!! MESSAGE FOR THE ADMINISTRATORS !!!! //There seams to be a problem with your C++ compiler. //It doesn't support #include<math.h> //In many problems I tried to use MATH.H, but I always got //COMPILATION ERROR. //Please take my notice into consideration and fix, if //possible, the problem. Thank you. I solved the problem. :D Look at my other post to see the solution. :D Edited by author 09.04.2005 15:27 Edited by author 10.04.2005 17:21 READ FAQ! (+) You got CE, because, maybe your code have the next lines: #include <math.h> ... int n; ... sqrt(n); ... if you change sqrt(n); to sqrt((double)n); You will not get CE! Sorry for my poor English :) Re: READ FAQ! (+) I don't have any integer variables. (int n) I use float. float n; sqrt(n); I tried also with double n; but I still get compilation error. Write me letter... (+) Send me your source to victorbarinov@ua.fm If you know Russian language, say please. Bue! Re: Write me letter... (+) I sent you an email containing my code. Please take a look. I'm sorry but I don't know Russian. My email is danmana11@yahoo.com I sent the answer to You. (+) If you not recieve my letter... change sqrt(2) to sqrt(2.0) in C 2 - integer value 2.0 - double value Re: I sent the answer to You. (+) Thank you very much I got AC. I was able to get AC other problems in witch I had the same error. I also got AC with the same code, but in C (with sqrt(2)). It seams that only C++ has this problem. So my conclusion : in C++ use sqrt(2.0); //sqrt(2); produces CE in C it is ok to use sqrt(2); Thank you very much for your help. :D |
|
|