Search:

Type: Posts; User: venckman

Search: Search took 0.01 seconds.

  1. Well the numfeats variable is 8, so that's not...

    Well the numfeats variable is 8, so that's not real huge. The number of compounds(the i variable) is 13, and for each compound, there are potentially 100 conformation structures, each with its own...
  2. Here's the allocation command I'm using: ...

    Here's the allocation command I'm using:

    cmpds[i].conformations[j].feature_dist = (double **)malloc(numfeats2*numfeats2*sizeof(double *));
    if (cmpds[i].conformations[j].feature_dist ==...
  3. can't allocate memory even though have plenty

    I have a program with not many structures that need memory allocated for, in my opinion, however, half way through code execution when I try to allocate memory for a two-dimensional array using...
  4. Replies
    4
    Views
    1,209

    it's the darn Microsoft Visual C++ debugger. It...

    it's the darn Microsoft Visual C++ debugger. It must have a glitch in how it's displaying variable values, because I was able to manually verify that the values are being populated correctly. Sorry.
  5. Replies
    4
    Views
    1,209

    Sorry, I do loop from 0 to 99, but I don't know...

    Sorry, I do loop from 0 to 99, but I don't know why I don't seem to get a list of 100 atom objects, unless Visual C++'s debugger is not showing me things properly.
  6. Replies
    4
    Views
    1,209

    basic pointer question need help

    I'm trying to work with a dynamically sized "array" of a structure called atoms. I declare an atom pointer like so:

    atom *atoms;

    Then, I allocated memory for a bunch of atom structures like...
Results 1 to 6 of 6