[作業] compiler hw4

作者: robertshih (施抄)   2009-05-31 14:47:45
what do we do with floating point constants?
we can't store them, as we only have int types;
we can't compute/compare them in expressions involving int variables,
as conversion are not allowed.
the only thing left to do, it seems to me, is comparison between
floating constants expressions, ie something like this:
if(3.14159265^2.71828183 > 2.71828183^3.14159265)
/*do something*/
certainly i am reading into the spec correctly?
作者: robertshih (施抄)   2009-05-31 16:55:00
我覺得你這樣對英文不好的同學很失禮sorry不爽不要答

Links booklink

Contact Us: admin [ a t ] ucptt.com