CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Nirf

Search: Search took 0.03 seconds.

  1. Replies
    9
    Views
    1,069

    Re: Problems with Member Function Addresses

    Recently I've used a lot of FFT and probabilistic (random number generation) stuff, at the moment I'm working primarily with ODE solvers. Although I would consider a non-GSL option for one particular...
  2. Replies
    9
    Views
    1,069

    Re: Problems with Member Function Addresses

    Thanks everyone again, Lindley for the breakdown of 1) and 2) and and Paul for the great explanation of the differences between member functions and non-member functions, and VictorN for the link. ...
  3. Replies
    9
    Views
    1,069

    Re: Problems with Member Function Addresses

    Thanks for the help Lindley. Someone on another forum had suggested using static to me, and then of course I had other problems. I had thought of passing this, the problem is that I am actually using...
  4. Replies
    9
    Views
    1,069

    Problems with Member Function Addresses

    Hello,

    I am doing numerical work and am using the GSL (GNU scientific library) to help me with my endeavors. I recently had some code working procedurally, and then switched over to object...
  5. Replies
    15
    Views
    1,772

    Re: Tricky Memory Related Segmentation Fault

    Strange, I thought I did. Here it is again.
  6. Replies
    15
    Views
    1,772

    Re: Tricky Memory Related Segmentation Fault

    Ok, here is the code. Some quick comments. First off, this is all being done in linux. Not all of it is relevant, I just zipped up the whole directory structure. If you look in the make file (in the...
  7. Replies
    15
    Views
    1,772

    Re: Tricky Memory Related Segmentation Fault

    Paul, while it is helpful for you to tell me to "simply" debug the program, I have believe it or not been trying to do that. I also know that C++ does strange things. What I am asking is for more...
  8. Replies
    15
    Views
    1,772

    Tricky Memory Related Segmentation Fault

    Hello,
    I have a very strange issue with a program I'm trying to debug. First of all, the program is a monte carlo simulation, which means that it does exactly the same process over and over again,...
  9. Re: Tricky Issue Involving Pointers and Segfaults

    that line should read double * randomField.
  10. Tricky Issue Involving Pointers and Segfaults

    Hello,
    I have the following very bizarre problem. I have written some code I have to integrate with a larger part of C++ programming. This program has some sketchy segfault issues. In particular,...
  11. Replies
    3
    Views
    5,561

    Re: Random Number Generation

    Hey, thanks for the post but right after I wrote this I got a hit on google I somehow missed before, which is the Gnu Scientific Library (GSL). I just got it installed (its very easy on Ubuntu...
  12. Replies
    3
    Views
    5,561

    Random Number Generation

    Hello, I'm a physicist working on some numerical stuff. I need a good random number generator package that generates numbers from basic distributions (for my current application I just need uniform...
  13. Replies
    4
    Views
    1,007

    Re: Difficulties Using STL sort on Array of Objects

    It was actually the copy constructor that was the problem... to be honest I'm largely self taught in the actual syntax of C++ (the courses I've had focused on algorithms in-class, so the instructor...
  14. Replies
    4
    Views
    1,007

    Re: Difficulties Using STL sort on Array of Objects

    oh PS if you actually want to try and compile this, there is another function called increment that you will need, I didn't post it because it along with its header file exceeded the 5 file limit,...
  15. Replies
    4
    Views
    1,007

    Difficulties Using STL sort on Array of Objects

    My goal was to sort a list of outputted vectors by length. I ended up trying to do this by creating a simple class that stored the vector, and the length of the vector. I then overloaded the <...
  16. Replies
    5
    Views
    1,321

    Re: A newbie question... importance of IOstream?

    True, fair enough it was in algorithm, however regardless why would using namespace std throw an error if not used in conjunction with #include <iostream> ? Also, why is it bad that they are macros?...
  17. Replies
    5
    Views
    1,321

    A newbie question... importance of IOstream?

    I'm a physics graduate student, so I'm implementing some relatively mathematical stuff in visual studio at the moment, and I was writing a class that would act like a very particular kind of array....
Results 1 to 17 of 17





Click Here to Expand Forum to Full Width

Featured