Search:

Type: Posts; User: Shafiul

Search: Search took 0.01 seconds.

  1. Sorry for that.

    Sorry for that.
  2. Do you have any recommendation regarding the consistency of UML diagram and code?

    Hello Everybody,
    I have translated the following class diagram (click on the link below) into c++ code. This is my early stage experience indeed for such an implementation from UML class diagram. I...
  3. Replies
    2
    Views
    130

    UML class diagram to code translation

    Hello Everybody,
    I have translated the following class diagram (click on the link below) into c++ code. This is my early stage experience indeed for such an implementation from UML class diagram. I...
  4. Hi Laserlight, I performed a simple...

    Hi Laserlight,
    I performed a simple test to compare the performance speed on malloc() and vector<>. I would like to share with you. The taste case was on a 2D array with 1000x1000 with...
  5. Dear Laserlight, I would like to...

    Dear Laserlight,
    I would like to share a bit details idea on my implementation. For instance, I have a data source in file, i have a matrix.cpp and vector.cpp. actually matrix (2d array)...
  6. Dear Laserlight, A quick question. How...

    Dear Laserlight,
    A quick question. How do you define ex-tern template function inside of AllocateVector.h for createData1D() to avoid the recompilation of the same function. Because...
  7. Dear Laserlight, Thanks for your...

    Dear Laserlight,
    Thanks for your explanation, nice of you though. your code looks very impressive and modern. I do feel, I still may need sometime to go through c++ from c. But...
  8. How can I prevent the duplication of stdlib.h in main.cpp?

    How can I prevent the duplication of stdlib.h in main.cpp?




    // AllocateVector.h
    #ifndef ALLOCATEVECTOR_H
    #define ALLOCATEVECTOR_H
    #include <stdlib.h>
  9. Thread: Need Help

    by Shafiul
    Replies
    18
    Views
    252

    you can try this header. hope, it should work

    you can try this header. hope, it should work
  10. Thread: Need Help

    by Shafiul
    Replies
    18
    Views
    252

    regarding header : memorytest.h /*#ifndef...

    regarding header : memorytest.h
    /*#ifndef MEMORYTEST_H
    #define MEMORYTEST_H
    #include <stdlib.h>
    template <class type1, class type2>
    void allocateData1DbyMalloc(type1** data1D,...
  11. Thread: Need Help

    by Shafiul
    Replies
    18
    Views
    252

    Hi Laserlight, well, i don't know the answer of...

    Hi Laserlight, well, i don't know the answer of "I'm talking about correctly invoking constructors" because I don't get the question honestly. Can you explain your question a bit please if possible....
  12. Thread: Need Help

    by Shafiul
    Replies
    18
    Views
    252

    Well, my plan is to put the top part of my code...

    Well, my plan is to put the top part of my code from line 7 to 38 in a header file and afterwards, add this header file in the .cpp file.
  13. Thread: Need Help

    by Shafiul
    Replies
    18
    Views
    252

    Hmm good question. Templates is not responsible...

    Hmm good question. Templates is not responsible for memory allocation but malloc is. This malloc can be replaced by cudamalloc() in future for computing. That's the reason, why I used malloc().
  14. Thread: Need Help

    by Shafiul
    Replies
    18
    Views
    252

    Hi Laserlight, Thanks for your suggestion. I...

    Hi Laserlight, Thanks for your suggestion. I prefer to keep this code as a C standard as much a possible, not C++. Specially the memory management part.
  15. Thread: Need Help

    by Shafiul
    Replies
    18
    Views
    252

    Hi Laserlight, don't get me wrong please. I mean,...

    Hi Laserlight, don't get me wrong please. I mean, I don't want to change the track from this specific point, specially at this moment. I already spend a significant amount of time behind this. There...
  16. Thread: Need Help

    by Shafiul
    Replies
    18
    Views
    252

    Hi Salem, don't get me wrong please. I mean, I...

    Hi Salem, don't get me wrong please. I mean, I don't want to change the track from this specific point, specially at this moment. I already spend a significant amount of time behind this. There might...
  17. Thread: Need Help

    by Shafiul
    Replies
    18
    Views
    252

    Nope. I prefer to use malloc() due to algorithmic...

    Nope. I prefer to use malloc() due to algorithmic performance. No recommendation for the vector container please!.
  18. Thread: Need Help

    by Shafiul
    Replies
    18
    Views
    252

    Need Help

    Hi Everyone, I am Shafiul Islam. I am beginer in C and C++. Recently I wrote a piece of code on Template and Malloc(). But I am afraid about the hidden bug. It works file till now for a small matrix...
Results 1 to 18 of 18