think4amit wrote: > hi, > > i hav a problem that how can i assign infinite value to a variable and > compare it with other variables in turbo c.
Are we talking about IEEE floating point? If so, it provides a mechanism of specifying infinity. However, you aren't supposed to compare floating point values for equality, so that could make it difficult to interact with them. You could also do something like define a class in C++ that wraps up a data type of your choice and then has a set of "flags" where one of the flags is 'infinity'. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/
