Search:

Type: Posts; User: a1pro

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    1,632

    it must be the system time thingy. I might...

    it must be the system time thingy.

    I might just throw the first number away like major small suggested

    Thanks
  2. Replies
    12
    Views
    1,632

    not entirely sure what is causing it, but there...

    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
  3. Replies
    12
    Views
    1,632

    what i meant is that there is hardly any change...

    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.
  4. Replies
    12
    Views
    1,632

    that almost works it works fine for all but the...

    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...
  5. Replies
    12
    Views
    1,632

    randon number generator inside a function

    hello

    i've trying to generate a random number inside a function, but to no avail.

    I've done the usual
  6. Thread: Goto Command

    by a1pro
    Replies
    13
    Views
    2,017

    never mind i got it working now inner most...

    never mind
    i got it working now

    inner most loop is a do-while loop now
  7. Thread: Goto Command

    by a1pro
    Replies
    13
    Views
    2,017

    technically you can use it...

    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...
  8. Replies
    7
    Views
    1,459

    I think that might work, now i have to think how...

    I think that might work, now i have to think how to implement it, but that gives me an idea.

    Thanks
  9. Replies
    7
    Views
    1,459

    circle and conditionals

    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...
  10. Replies
    4
    Views
    1,354

    it's just a way to store the positions of the...

    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.
    (...
  11. Replies
    4
    Views
    1,354

    functions stops loop from running

    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,...
  12. Replies
    10
    Views
    2,599

    if you read the first post again, you'll see this...

    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...
  13. Replies
    10
    Views
    2,599

    I don't want you to write me a program. All i...

    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...
  14. Replies
    10
    Views
    2,599

    i've run it and it doesn't work. it does...

    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?
  15. Replies
    10
    Views
    2,599

    quzah won't that just generate a filename that...

    quzah
    won't that just generate a filename that is filename0001.asc001.asc?
  16. Replies
    10
    Views
    2,599

    Reading data from consecutively named files

    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:...
Results 1 to 16 of 16