My first C++ programs! ^-^
PostPosted: Tue Jan 24, 2006 3:21 am
It's like my Java thread... only for C++.
http://www.savefile.com/files/3689115
Here is my very first (nonretarded... you know, the typical "lol this is my first prog written in <insert language here> !!!1112one!1!!" program. We all do them, and they don't count.) C++ program. It's an interesting little "game" involving ancient ways of trying to find the square root of numbers, and apparently this method works pretty well. The program has a small random number generator in it, so your results may differ by a little bit if you do the same search twice. If you search on uber or 1337 accuracy mode, chances are that the program will come up with an answer that is so close to the actual square root that it is unable to calculate for a difference between the two.
Oh, and "pretty accurate" isn't very accurate for large numbers. (speaking of which, you may enter any number within the long double range) The descriptions of accuracy really vary on the number being used.
Edit: Uploaded better version. I decided that the first one was way too inaccurate for any fun.
http://www.savefile.com/files/3689115
Here is my very first (nonretarded... you know, the typical "lol this is my first prog written in <insert language here> !!!1112one!1!!" program. We all do them, and they don't count.) C++ program. It's an interesting little "game" involving ancient ways of trying to find the square root of numbers, and apparently this method works pretty well. The program has a small random number generator in it, so your results may differ by a little bit if you do the same search twice. If you search on uber or 1337 accuracy mode, chances are that the program will come up with an answer that is so close to the actual square root that it is unable to calculate for a difference between the two.
Oh, and "pretty accurate" isn't very accurate for large numbers. (speaking of which, you may enter any number within the long double range) The descriptions of accuracy really vary on the number being used.
Edit: Uploaded better version. I decided that the first one was way too inaccurate for any fun.