September 21st, 2009, 12:46 PM
ok. thanks a lot. i figured it out. thanks for your help
September 21st, 2009, 11:08 AM
and how do i create an array to make sure 1000 different x_values and y_values are listed?
September 21st, 2009, 10:05 AM
i think its because this line tells it to do so
file<<x_value<<","<<y_value<<"\n";
and it does it again and again when it goes to the beginning of the loop
September 21st, 2009, 09:42 AM
i want it written 1000 times. 1000 different x_values and 1000 different y_values. And that's why i thought the for loop will do it. But it prints out only the first x_value and y_value
September 21st, 2009, 09:29 AM
i generated random numbers for x_value and y_value like a few lines above that code, so i thought it would print out all the random numbers to the text file
September 21st, 2009, 09:19 AM
hi, the random numbers (x_value, y_value) are generated within the while loop. So opening the file before the while loop doesn't give me the numbers i need. do you know what i need to do? The for...
September 21st, 2009, 02:49 AM
Im trying to get the output transferred to a txt file. Each time i run it the way it is, it only shows a repetition of the first generated random number. I want all the random x_values and y_values...
September 21st, 2009, 02:47 AM
Im trying to get the output transferred to a txt file. Each time i run it the way it is, it only shows a repetition of the first generated random number. I want all the random x_values and y_values...