Search:

Type: Posts; User: hebali

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    27
    Views
    2,334

    Thanks for your help

    Thanks for your help
  2. Replies
    27
    Views
    2,334

    Sorry, I just caught onto what that element is...

    Sorry, I just caught onto what that element is for...
    I was assuming I would supply my own string getting function, but then you handed me the above code, with which I was unfamiliar, and I thought...
  3. Replies
    27
    Views
    2,334

    So why call it?

    So why call it?
  4. Replies
    27
    Views
    2,334

    What is that function: size_t...

    What is that function:


    size_t get_user_file_path(char *buffer, size_t size, const char *user)
    {
    return snprintf(buffer, size, "/%s/Desktop/database.txt", user);
    }


    It doesn't take user...
  5. Replies
    27
    Views
    2,334

    in trying to compile size_t...

    in trying to compile


    size_t get_user_file_path(char *buffer, size_t size, const char *user)
    {
    return snprintf(buffer, size, "/%s/Desktop/database.txt", user);
    }

    I get error "nested...
  6. Replies
    27
    Views
    2,334

    Yes, I guess so. But I didn't understand the...

    Yes, I guess so.
    But I didn't understand the formatting of Master's example.
    Sorry
  7. Replies
    27
    Views
    2,334

    What? Sorry, new to this...

    What?
    Sorry, new to this...
  8. Replies
    27
    Views
    2,334

    master5001, i know how to change directories, but...

    master5001, i know how to change directories, but is it not possible to do with a:
    Take user input, assigned to variable INPUT, and then write the file to:
    "~/INPUT/whatever.txt"
    formatting?
  9. Replies
    27
    Views
    2,334

    That's what I want to do... what would the...

    That's what I want to do...
    what would the formatting of that look like in terms of:
    "FILE *fp = fopen("/Users/Desktop/database.txt", "w");
  10. Replies
    27
    Views
    2,334

    And I would prefer to do this without a system...

    And I would prefer to do this without a system command such as cwd...
  11. Replies
    27
    Views
    2,334

    Yes, but what if rather than predefining the...

    Yes, but what if rather than predefining the location such as: "~/Desktop/whatever.txt"
    I want the program to first take user input, assigned to variable INPUT, and then write the file to:...
  12. Replies
    27
    Views
    2,334

    Naturally, the value of Directory1 would be a...

    Naturally, the value of Directory1 would be a string...
  13. Replies
    27
    Views
    2,334

    File output location specification...

    Hi,
    I am using the following code, which successfully writes a file to the location below...



    FILE *fp = fopen("/Users/me/Desktop/database456abcXa.txt", "w");

    if (fp != NULL)
    {...
  14. Excellent, thank you

    Excellent, thank you
  15. Ahhh. why is it rounding?

    Ahhh. why is it rounding?
  16. Converting float to integer... without rounding!

    In the following code:



    float FOO;
    FOO = 1.79;

    int BAR = FOO * 100;
  17. Replies
    40
    Views
    19,748

    Question: Let's say I've got the structs in...

    Question:

    Let's say I've got the structs in place as seen above. And then I implement a triangle (which contains 3 points: x, y, z)

    If I perform operations with this, can I work with all three...
  18. Replies
    40
    Views
    19,748

    you both rule

    you both rule
  19. Replies
    40
    Views
    19,748

    Yikes, sorry... one more question... earlier...

    Yikes, sorry... one more question...

    earlier you used a loop to input (with k as loop variable):

    within this, I need something to the effect of "&myCube.v[k].x" rather than "&myCube.v0.x"

    It...
  20. Replies
    40
    Views
    19,748

    yes, thanks. your implementation of DoesIntersect...

    yes, thanks. your implementation of DoesIntersect is perfect. The only confusion was this:
    Before DoesIntersect is ever called in the main, a user inputs the vertices of a cube.
    These are operated...
  21. Replies
    40
    Views
    19,748

    one more question for now: If I define the...

    one more question for now:
    If I define the following


    typedef struct
    {
    double x;
    double y;
    double z;
    } vertex;
  22. Replies
    40
    Views
    19,748

    Thanks so much for your help. It's actually not...

    Thanks so much for your help.
    It's actually not for an assignment. I'm not in a class... which makes it harder.
    But I do think I understand the ideas you're implementing and I will put them into...
  23. Replies
    40
    Views
    19,748

    Thanks, this is great... and I do understand what...

    Thanks, this is great... and I do understand what you're doing... but there is one problem:

    Here is the flow: (and why the user is not actually inputting triangles)

    Program flow:
    1) User...
  24. Replies
    40
    Views
    19,748

    so, is this what you meant? I'm not exactly sure...

    so, is this what you meant?
    I'm not exactly sure how to implement DoesIntersect as a function.
    Do I want "void" in its parenthesis... where do I define what variables can be passed values...?


    ...
  25. Replies
    40
    Views
    19,748

    Yes, sorry. The main is currently my general...

    Yes, sorry. The main is currently my general intersection checker. But as you suggested, I don't want that to be in the main but rather as a function: DoesIntersect()

    Your implementation was right...
Results 1 to 25 of 85
Page 1 of 4 1 2 3 4