Saturday, May 22, 2010

What are the other COMPILERS that i can use other than Turbo C?

The Turbo C compiler is not Printing matrices of higher order.


I require to calculate %26amp; output around 300X300 Matrix...


Also tell me where will i get these compilers..


Also tell me how to avoid NAN's %26amp; Garbage values in the Output Matrix.


Thank You

What are the other COMPILERS that i can use other than Turbo C?
If the compiler is really the problem, Microsoft now have free versions of their compilers available to download. You can get Visual C++ from:





http://msdn.microsoft.com/vstudio/expres...





There are some limitations in the 'express editions', but I've been able to do everything I need to do with them. I can't even remember now what the limitations are :).





NaNs probably mean that somewhere in your code you're calculating invalid floating point values. You'd need fo check the code to find out where that's happening.
Reply:it is not the complier, it is the memory allocation that matters. if you were talking about big element values inside the matrix, you may use double type, or you can try the 64bit gcc to compare the differences (but you don't actually need 64bit engine to handle big values). you can also consider writing intermediate results to a tmp file ...
Reply:** Checks google.com. Hmm, looks like it is working. Not sure why Google didn't work for you.





C compilers:


Visual C++.


gcc


Various others found with Google.





%26gt;%26gt; I require to calculate %26amp; output around 300X300 Matrix...


You didn't try to initialize that on the stack did you?





%26gt;%26gt; Also tell me how to avoid NAN's %26amp; Garbage values in the Output Matrix.


Fix your code. It's a good bet you wrote your code wrong. Getting a different compiler won't help if you can't write C code properly.

online florists

No comments:

Post a Comment