Search:

Type: Posts; User: Smattacus

Search: Search took 0.01 seconds.

  1. Thanks for the input, but I walked away from the...

    Thanks for the input, but I walked away from the problem then came back, and then it was working perfectly.

    I think that it was a buffer issue since I had developed it all in one session, and I've...
  2. Writing Files with a Timestamp - Extras appearing

    Hi Everyone,

    Been a while since I've posted on here!

    So, I'm working on some C code for a data acquisition system to read out PMTs. That part hasn't been too bad, but I'm having a weird issue...
  3. Replies
    8
    Views
    2,353

    These sound like a form of FITS files, only used...

    These sound like a form of FITS files, only used to hold information in a binary table form. Does that ring any bells? If so, I can provide some help; I work with them a lot.
  4. Thread: re pointers

    by Smattacus
    Replies
    3
    Views
    799

    I wouldn't post your email address on a public...

    I wouldn't post your email address on a public forum. It's going to get destroyed by a ton of spam bots soon.

    Secondly, yeah, try to write the code on your own. The people here are very helpful,...
  5. Replies
    8
    Views
    1,030

    One way you may want to think about is using...

    One way you may want to think about is using pointers to pointers (**char) which point at the elements in the string array which point to the newline characters. This would make it pretty easy to...
  6. Replies
    8
    Views
    1,495

    While writing a constructor for a node - type...

    While writing a constructor for a node - type object in a binary search tree I accidentally assigned the indices of the top and bottom wrong, that is, I pointed the top variable to the bottom and the...
  7. Replies
    11
    Views
    1,160

    My bad I forgot since I was just writing out a...

    My bad I forgot since I was just writing out a semi - psuedo code example in the thread. Here's a tabbed version for those who care.



    int main(void) {
    //Do some stuff, add things, subtract...
  8. Replies
    11
    Views
    1,160

    You should note that one does not include...

    You should note that one does not include function declarations and definitions inside of main! What you're doing now is just that; your bracket finishing main is at the end of the entire program!...
  9. Replies
    160
    Views
    276,381

    Sticky: I noobed this pretty hard, the full name of the...

    I noobed this pretty hard, the full name of the book is in fact NUMERICAL RECIPES, not Numerical Recipes in C. The author and edition info are correct.
  10. Replies
    5
    Views
    2,639

    Sup Dino, hopefully you still have a subscription...

    Sup Dino, hopefully you still have a subscription on this. I'm posting this since you said you'd be interested in the solution. So I've implemented this KD Tree and got it working, though there are a...
  11. Replies
    10
    Views
    3,143

    Make sure you have the right value in answer. Did...

    Make sure you have the right value in answer. Did you correctly read it? Your use of continue and break are correct, so try looking a little bit higher up. Try looking at the if, and think of what...
  12. Thread: Heeeelp

    by Smattacus
    Replies
    5
    Views
    1,648

    if ( quality==3 && ceiling==2); { ...

    if ( quality==3 && ceiling==2);
    {
    basiccost=2*8*length+2*8*width*2*20/400+width*length*20/400*2;
    }
    else XXX
    {
    basiccost=0;
    }
  13. Replies
    160
    Views
    276,381

    Sticky: Amazingly, no one has mentioned Numerical Recipes...

    Amazingly, no one has mentioned Numerical Recipes in C, 3rd edition (2007) Press, Teukolsky, Vetterling, and Flannery. This ties in to an earlier post where someone was asking for references on more...
  14. Replies
    5
    Views
    2,639

    I think I'm going to use a KD tree, as it should...

    I think I'm going to use a KD tree, as it should be quite fast.

    Making the tree has a complexity of N log N, and matching one point to it takes log N time, where N is the size of the list I'm...
  15. Replies
    5
    Views
    2,639

    For the numerical recipes in C types!

    Hey guys,

    I'm looking for a little input on something I'm about to implement. I figure some of you guys might be interested in thinking about this a little bit if you haven't already before.
    ...
  16. Replies
    6
    Views
    2,079

    Yes, you are correct. I had a function which...

    Yes, you are correct.

    I had a function which was called outside of this module which I was using to expand environment variables, which was adding an extraneous "/" to the beginning of the...
  17. Replies
    6
    Views
    2,079

    Thank you for the clarification! I understand why...

    Thank you for the clarification! I understand why it was doing that now.

    Debugging this particular problem has become much easier.
  18. Replies
    6
    Views
    2,079

    Crap, sorry to waste your time! I got it. It...

    Crap, sorry to waste your time! I got it.

    It seems that not having a newline character in a print statement before a core dump causes that print statement not to show up. Strange. I learned...
  19. Replies
    6
    Views
    2,079

    Strange core dump, help please

    Hi guys,

    I'm pretty stumped on this one, as it's behaving kind of weird. I am running this module as part of a larger program that is doing some data analysis. However, when I run the code, I get...
Results 1 to 19 of 19