Search:

Type: Posts; User: Xeridanus

Search: Search took 0.01 seconds.

  1. what about the portable time.h library? in that...

    what about the portable time.h library? in that is a function that does this kind of stuff, strftime() i believe. hang on i go get the prototype.

    size_t strftime(char *s, size_t maxsize, const...
  2. Replies
    6
    Views
    1,785

    perhaps a function that truncates a double to a...

    perhaps a function that truncates a double to a certain number of decimal points by using the multiply and then returns the truncated double.

    double truncDoub(double toBeTrunced, int...
  3. Replies
    5
    Views
    1,172

    I think the * operator has lower priority, isn't...

    I think the * operator has lower priority, isn't that the whole reason for the -> operator replacing the . operator for pointers.

    *looking up my C manual* ok, subscripts[], function calls(),...
  4. Replies
    4
    Views
    3,341

    hey thanks. this looks like it can do exactly...

    hey thanks. this looks like it can do exactly what i want.
  5. Replies
    1
    Views
    7,083

    1.7e +/- 308 has to do with the range a double...

    1.7e +/- 308 has to do with the range a double can hold. from 1.7 * 10^308 to 1.7 * 10^-308, and of course the negatives of those numbers as well. a float/double cannot hold exactly 0 because of the...
  6. Replies
    1
    Views
    3,957

    which part are you having trouble with? you...

    which part are you having trouble with? you should have read the rules, we cannot write the code for you, nor should you ask such general questions. try to do it first, give us some code that doesn't...
  7. Replies
    4
    Views
    3,341

    yes, but i would like it to behave in the same...

    yes, but i would like it to behave in the same way as the file streams, using overloaded << and >> operators. i was wondering if anyone could tell me if it would be better to derive my class from the...
  8. Replies
    4
    Views
    3,341

    Best way to do encryption file stream

    this is prolly an advanced problem, im not sure.

    i have created a program in C++ for encrypting files. you can either pass it command line arguments in which case it will run silently or if a dumb...
  9. Replies
    14
    Views
    1,203

    whoops, yes i did. printf("%i", A[i][j]); ...

    whoops, yes i did.

    printf("%i", A[i][j]);

    thanks for the pick-up
  10. Replies
    14
    Views
    1,203

    for (int i=0; i

    for (int i=0; i<rows; ++i) {
    for (int j=0; j<cols; ++j) {
    printf("%i", A[rows][cols]); //or %f if you use doubles
    }
    printf("\n"); //end of row, go to next line.
    }

    NB: capital letters are...
  11. Replies
    5
    Views
    1,591

    if you are ending up with empty partitions, just...

    if you are ending up with empty partitions, just write a function to test if a partition is empty, then add another stopping case. i haven't done anything with vectors so they might have their own...
Results 1 to 11 of 11