[quote="Dominik Michniewski"]try to test in for loop not step variable, but mod variable ... please assume, that after mod steps values must repeat, so it's not neccessary to compute all values to value of step variable ...
/quote]
Huh? I'm sorry but I just can't understand what you are saying. I'm ...
Search found 2 matches
- Tue Apr 13, 2004 11:25 pm
- Forum: Volume 4 (400-499)
- Topic: 408 - Uniform Generator
- Replies: 48
- Views: 9925
- Tue Apr 13, 2004 8:37 pm
- Forum: Volume 4 (400-499)
- Topic: 408 - Uniform Generator
- Replies: 48
- Views: 9925
408 very odd infinte loop
Okay pretty much here is the deal when I submit this code it times out. From my testing that is impossiable. Here is the code
[cpp]#include <stdio.h>
#include <iostream.h>
#include <stdlib.h>
void main()
{
long step, mod;
bool goodChoice;
while( cin>> step >> mod )
{
goodChoice = true;
for ...
[cpp]#include <stdio.h>
#include <iostream.h>
#include <stdlib.h>
void main()
{
long step, mod;
bool goodChoice;
while( cin>> step >> mod )
{
goodChoice = true;
for ...