it must be the system time thingy.
I might just throw the first number away like major small suggested
Thanks
Type: Posts; User: a1pro
it must be the system time thingy.
I might just throw the first number away like major small suggested
Thanks
not entirely sure what is causing it, but there is something odd with the first number.
It doesn't matter too much, i'm just curious about it
what i meant is that there is hardly any change in the first number generated while the second one varies from 0.002432 to 0.746566 in the first four runs.
that almost works
it works fine for all but the first run which hardly varies.
1st RN 1st run: 0.514481
2nd run:0.524552
3rd run: 0.526231
and so on, the others are...
hello
i've trying to generate a random number inside a function, but to no avail.
I've done the usual
never mind
i got it working now
inner most loop is a do-while loop now
technically you can use it
http://www.sscnet.ucla.edu/geog/gessler/borland/cpp.htm
Anyway.
A related question since goto statements are a no no in c++, how do you exit a nested loop?
I've...
I think that might work, now i have to think how to implement it, but that gives me an idea.
Thanks
so I've got a program that defines a circle, well,a lattice of circles.
Now i need to check whether a particular position is inside the circle or not. this is part of a bigger program.
Any...
it's just a way to store the positions of the circumference, i.e.each individual x,y value, so what i'm trying to return is a set of coordinates for each circunference around certain positions.
(...
hello
i've got an odd problem with the code like it is the program stops after it runs the function hole for the first time.
edit:
i've just tried in linux, and i get a segmentation fault,...
if you read the first post again, you'll see this line
it looks to me as if it's the whole datafile name completely, not just the prefix.
Perhaps it's you who should try running the given...
I don't want you to write me a program.
All i need to know is how to extract the prefix from a filename that could be named anything0001.asc, where anything is really anything as per my first post...
i've run it and it doesn't work.
it does exactly what i said it would, unless one inputs the prefix.
any other ideas?
quzah
won't that just generate a filename that is filename0001.asc001.asc?
Hello, first post here so i hope i don't break any rules.
I need to read some data from several consecutively named data files. The thing is a) the data files are gonna be named something like:...