[CSC 315] Another Integer Line Algorithm
Andrew J. Pounds
pounds_aj at mercer.edu
Tue Sep 23 21:15:43 EDT 2014
Ahh.... at the top of my program (not the snippet of "line code" I
gave you) I had the following defined
#define sgn(A) A>0? 1: A<0? -1: 0;
I also had definitions for MAX and MIN, but I have largely removed these
from my codes in favor of the math library routines fmax and fmin.
On 09/23/14 13:19, wrote:
> Hello!
>
> How do we use the sgn in C? std::sgn brings up an error when its complied.
>
> Thanks!
>
>
> ________________________________________
>
--
Andrew J. Pounds, Ph.D. (pounds_aj at mercer.edu)
Professor of Chemistry and Computer Science
Mercer University, Macon, GA 31207 (478) 301-5627
http://faculty.mercer.edu/pounds_aj
More information about the csc315
mailing list