Search:

Type: Posts; User: tabstop

Search: Search took 0.12 seconds.

  1. Replies
    25
    Views
    3,584

    Other way. .001 -> 0; .005 -> 0; .999 -> 0. ...

    Other way. .001 -> 0; .005 -> 0; .999 -> 0. double to int always truncates.
  2. Replies
    25
    Views
    3,584

    It would appear you should read what a reference...

    It would appear you should read what a reference is.
  3. Replies
    25
    Views
    3,584

    void getfile(ifstream &fptr) (Spacing...

    void getfile(ifstream &fptr)


    (Spacing deliberately kept to annoy Elysia. :))
  4. Replies
    25
    Views
    3,584

    You can't pass a pointer to an ifstream, I think;...

    You can't pass a pointer to an ifstream, I think; or at least anyway, why would you? Pass a reference. You also don't want to declare a new variable fptr inside your function (there on line four of...
  5. Replies
    25
    Views
    3,584

    You can use either FILE or...

    You can use either FILE or fstream/ifstream/ofstream, but not both.
Results 1 to 5 of 5