Search found 8 matches

by stykat
Thu Jan 22, 2009 5:21 am
Forum: Programming Discussion
Topic: Making a random number generator using PI (on c++)..?
Replies: 10
Views: 1372

Re: Making a random number generator using PI (on c++)..?

First of all,i am sorry for my bad grammar. I am Romanian and live in Romania wich is in Eastern Europe, and English is not my first language, it is the second, then the third is Hungarian. I was trying to generate random numbers using PI, as i saw, there are some programs like Pifast and QuickPi. W...
by stykat
Wed Jan 21, 2009 4:33 pm
Forum: Programming Discussion
Topic: Making a random number generator using PI (on c++)..?
Replies: 10
Views: 1372

Re: Making a random number generator using PI (on c++)..?

i did saw the Random number generator, but that one will generate a number between 1 and 100, as you wrote in the comment on the code what i have to make is, one, by calculating the PI, to find a bigger approximation of PI, this is for demonstrating that two things are different (i can't really say ...
by stykat
Wed Jan 21, 2009 4:15 pm
Forum: Programming Discussion
Topic: Making a random number generator using PI (on c++)..?
Replies: 10
Views: 1372

Re: Making a random number generator using PI (on c++)..?

Ok well shoot it,, (your code).

I tried to find some sources for a pi calculator, i found some, i can poste the code if you want, however its about 2880 lines of code.
by stykat
Tue Jan 20, 2009 3:57 pm
Forum: Programming Discussion
Topic: Making a random number generator using PI (on c++)..?
Replies: 10
Views: 1372

Making a random number generator using PI (on c++)..?

After, i got angry, as the neighbours on the 4th floor are so noisy that if my " blesings " would affect them the noise would be from their screaming, and then i realised how a big noob i am since i have a mess in my mind and im a noob at math, i try to figure out, how could i make a rando...
by stykat
Mon Jan 12, 2009 3:58 pm
Forum: Programming Discussion
Topic: What command do you use, to go to another variable if...?
Replies: 14
Views: 1675

Re: What command do you use, to go to another variable if...?

I will just stay, at,, the, do a condition for everything, since, if i would try to make a loop for that error, it will just loop it forever, ok, i learned so far alot, so now i could get my eyes on the book again. Thank you guys for the cooperation. About the writing, well i got a bad hand writing ...
by stykat
Mon Jan 12, 2009 1:48 am
Forum: Programming Discussion
Topic: What command do you use, to go to another variable if...?
Replies: 14
Views: 1675

Re: What command do you use, to go to another variable if...?

WEll, i tried with that, but, it didn't worked.
If i typed a number that did not fit the condition it told me : the number is smaller than 20.
by stykat
Sun Jan 11, 2009 3:47 pm
Forum: Programming Discussion
Topic: What command do you use, to go to another variable if...?
Replies: 14
Views: 1675

Re: What command do you use, to go to another variable if...?

you could write it like this... int number = 0; do { cout << "please type a number between 1 and 20"; cin >> number ; }while((number < 1) || (number > 20) ); // then you insert your other code here i'll explain the thought behind it. you use the Do...While statement to execute your block ...
by stykat
Sat Jan 10, 2009 4:23 pm
Forum: Programming Discussion
Topic: What command do you use, to go to another variable if...?
Replies: 14
Views: 1675

What command do you use, to go to another variable if...?

I am still learning C++, and i am trying to make a program, that would look like this: ( im going to write it, rather like a pseudo code, not with the whole commands) int number ; cout<< " Please type in a number between 1 and 20 " ; cin>>number ; if ( number < 1 && number > 20 ) d...