we have a compitition...
first person to write a C++ program that does the following:
Calculate PI to 100 decimal places
Output the result
In under a sec
will get a nice hosting prize from HydroHost
>>1 you should be a little better at posting your thread.
Make your topic a lot more informative. You could have used something like "[Competition] C++ and Pi" that tells us a bit more. Abbreviations suck. You should use some correct spelling and grammar. You don't have to be a grammar nazi, the occaisional mistake is okay.
"age" doesn't do anything. A blank "link" field is the same as an "age". "sage" wouldn't do anything either, since new threads automatically bump to the top.
Just because 4-ch is open to everyone and registration free doesn't mean you can make excuses for being a lazy idiot. http://4-ch.net/wiki/guide_to_posting
Also: The speed of which a program calculates is highly restricted on the CPU.
`#include <iostream>
#include <string>
using namespace std;
string notpi = "8)6960471080342487839171988387240573396426148448206503754294990478523619517317534431735893708976625124";
char calculate(char input) {
if(input < '5') return (input + 5);
return (input - 5);
}
int main() {
for(string::iterator i=notpi.begin();i<notpi.end();++i)
*i = calculate(*i);
cout << notpi << endl;
return 0;
}`
>>3
lol
Yeah, the solve my homework thread is that way -------->
test
_,met$$$$$gg.
,g$$$$$$$$$$$$$$$P.
,g$$P" """Y$$.".
,$$P' `$$$.
',$$P ,ggs. `$$b:
`d$$' ,$P"' . $$$
$$P d$' , $$P
$$: $$. - ,d$$'
$$; Y$b._ _,d$P'
Y$$. `.`"Y$$$$P"'
`$$b "-.__
`Y$$
`Y$$.
`$$b.
`Y$$b.
`"Y$b._
`"""