Search:

Type: Posts; User: chen1279

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    1,700

    Thanks! I get one place to know some thing about...

    Thanks! I get one place to know some thing about this.
  2. Replies
    6
    Views
    1,700

    any help is appreciated!!!!!!!!!!!!!!!!!!

    any help is appreciated!!!!!!!!!!!!!!!!!!
  3. Replies
    6
    Views
    1,700

    I think I need to use the code. The code won't...

    I think I need to use the code. The code won't compile under MS Visual C++.Net 2003 version. Another possible solution is to get the C++ compiler in 1999 version, but I just cannot find one yet.
  4. Replies
    6
    Views
    1,700

    C++ code in 1999

    Hi all:

    I have a C++ program for me to use, but it is written in 1999, and I notice that the some aspects of C++ program now different from that in 1999, such as "using namespace std" and...
  5. Replies
    3
    Views
    2,925

    thank! I find it too.

    thank! I find it too.
  6. Replies
    3
    Views
    2,925

    Using Visual C++ for C programming

    Hi all:

    I am wondering can I use Visual C++ for C program IDE. It seems to me that Visual C++ does recognize C program, but when I am going to create a project for C using Visual C++, it has no...
  7. Replies
    12
    Views
    3,834

    After I run my code in my own computer...

    After I run my code in my own computer (previously, I run it in my student account), all problem disappear. I looks to me that my student account's memory is too small to make the malloc function...
  8. Replies
    12
    Views
    3,834

    >Do you allocate memory for rightSet to point to...

    >Do you allocate memory for rightSet to point to somewhere?

    I have checked, rightSet have memory allocated for them. And exactly it is this part

    (Leaf*) malloc(rightSetSize*sizeof(Leaf))
    ...
  9. Replies
    12
    Views
    3,834

    The code is here: int rightSetSize =...

    The code is here:


    int rightSetSize = numberOfDistances - medianDisIndex;
    rightSet->leaf = (Leaf*) malloc(rightSetSize*sizeof(Leaf));
    if (rightSet->leaf == NULL)
    FatalError("out of memory...
  10. Replies
    12
    Views
    3,834

    malloc, calloc question

    Hi all:

    When I was using the malloc and calloc function in C, in some situation it gives me the error:
    Segment Fault (core dump), in some situation, it gives me the error: Bus error (core...
  11. Replies
    4
    Views
    1,746

    Thanks! I also post a similar question on the...

    Thanks! I also post a similar question on the forum you inidicated.
  12. Replies
    4
    Views
    1,746

    C data structure

    Hi all:

    I notice that in C's built in library, it does not have some common data structures and sort rountines, such as stack, queue, linkedList, mergeSort, and quickSort. So I guess that we need...
Results 1 to 12 of 12