[A89] Re: A problem


[Prev][Next][Index][Thread]

[A89] Re: A problem




> product=(3)x(15);
>
> I should be getting 45 but for some reason it keeps giving me an
error...can
> you guys help me?  Stupid compiler!

You'll get this error with pretty much any programming language. The
multiplication operator is almost always * and not x because x is considered
a variable. The compiler is far from stupid. You should keep things such as
this off of this list and buy a book on C++ basics.

~ S. Thompson



Shop online without a credit card
http://www.rocketcash.com
RocketCash, a NetZero subsidiary




References: