Re: Need help to convert my C++ codes to Java with GUI
- From: Roedy Green <see_website@xxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 24 Feb 2008 13:51:57 GMT
On Sat, 23 Feb 2008 20:42:18 -0800 (PST), Katak
<vampireex@xxxxxxxxxxx> wrote, quoted or indirectly quoted someone who
said :
Sorry. I think it was meant to be exponent since I was doing decimal =
binary * 2^1 , decimal = binary * 2*2, etc. Named it wrongly.
In that case you can often use a loop to incrementally create a power,
especially if you need to intermediate values.
pow *= base;
You can create powers of two with left shifts. e.g.
1 << 3 == 8
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.
- References:
- Need help to convert my C++ codes to Java with GUI
- From: vampireex
- Re: Need help to convert my C++ codes to Java with GUI
- From: Roedy Green
- Re: Need help to convert my C++ codes to Java with GUI
- From: Katak
- Re: Need help to convert my C++ codes to Java with GUI
- From: Katak
- Re: Need help to convert my C++ codes to Java with GUI
- From: Jeff Higgins
- Re: Need help to convert my C++ codes to Java with GUI
- From: Roedy Green
- Re: Need help to convert my C++ codes to Java with GUI
- From: Katak
- Need help to convert my C++ codes to Java with GUI
- Prev by Date: Re: Need help to convert my C++ codes to Java with GUI
- Next by Date: Re: Need help to convert my C++ codes to Java with GUI
- Previous by thread: Re: Need help to convert my C++ codes to Java with GUI
- Next by thread: Re: Need help to convert my C++ codes to Java with GUI
- Index(es):
Relevant Pages
|