Search:

Type: Posts; User: jimblumberg

Search: Search took 0.30 seconds.

  1. Replies
    6
    Views
    1,493

    No a declaring a pointer does not allocate any...

    No a declaring a pointer does not allocate any memory.

    How much would it allocate?

    You, the programmer should know how much memory to allocate.

    You must either use new in C++ or malloc...
  2. Replies
    6
    Views
    1,493

    In the code below you are never allocating any...

    In the code below you are never allocating any memory for bitmap.

    You either need to us new to allocate memory



    unsigned char *bitmap; //bitmap array
    int i = 0;

    ...
Results 1 to 2 of 2