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

Search:

Type: Posts; User: BrainInVat

Search: Search took 0.03 seconds.

  1. Replies
    6
    Views
    776

    Re: N-th Harmonics

    I wrote code to calculate spherical harmonics years ago. The problem I had was rounding error. My guess is that rounding error is your problem as well. I am not going to post my code, because I...
  2. Replies
    14
    Views
    14,442

    Re: C++ memory issues

    Thanks for your responses. I have done some tests.

    I believe Paul suggested I run the following code.




    # include <iostream>
    # include <fstream>
    # include <string>
  3. Replies
    14
    Views
    14,442

    Re: C++ memory issues

    I have told you the program crashes. I am not the one killing the program. I am running this on a 32-bit linux machine with 1 GB of RAM. I am running this on a computer cluster and when I submit...
  4. Replies
    14
    Views
    14,442

    Re: C++ memory issues

    I use g++ version 4.1.
  5. Replies
    14
    Views
    14,442

    Re: C++ memory issues

    My apologies for posting code that does not work. The code I posted was in two source files, and I thought it would be more convenient to post them as one file, but I copied and pasted the wrong...
  6. Replies
    14
    Views
    14,442

    C++ memory issues

    I am trying to write a function which attempts to allocate memory 3d vectors and returns false if it is unable to allocate the memory. It is not working. I have pasted the code below.





    #...
  7. Replies
    4
    Views
    1,698

    Re: Dynamic memory allocation problem

    Thanks. It worked. I tried bool SafeArrayAlloc(T&* array, int Size) previously but it did not work. You are probably right that this function is not very useful, but I also wanted to write a...
  8. Replies
    4
    Views
    1,698

    Dynamic memory allocation problem

    I am trying to write a function to do dynamic memory allocation with a try catch block, so that I don't have to manually write a try catch block each time I want to allocate memory for an array. The...
  9. Replies
    3
    Views
    701

    Problem with arrays

    I am trying to take numbers from a text file and then do some math with them, but I am having some difficulty saving the numbers from the text to an array. Every time it saves a number from the...
Results 1 to 9 of 9





Click Here to Expand Forum to Full Width

Featured