Search:

Type: Posts; User: dr_jaymahdi

Search: Search took 0.00 seconds.

  1. Thanks for the quick response. Well I am...

    Thanks for the quick response.

    Well I am compiling this entirely through g++ compiler ... Someone told me that I can only mix C/C++ code in Windows programming only -- although I am starting to...
  2. Combining C and C++ code together (Linux)

    Hi,

    I am wondering if it is possible to compile C code in a C++ program? What I am trying to do is to build a parser created from ANTLR V3 with as C being the target language. I am wondering if it...
  3. Replies
    4
    Views
    1,755

    Hi, thanks for your response. I thought...

    Hi, thanks for your response.

    I thought destructors are used to delete useless objects from memory? I thought I knew everything about destructors but I guess I'm wrong.
  4. Replies
    4
    Views
    1,755

    can anyone please help?

    can anyone please help?
  5. Replies
    4
    Views
    1,755

    Extremely strange "delete" problem

    Hi All,

    I'm trying to make my own Stack Data Structure using classes. Unfortunately I ran into a very awkward problem that involves with the delete operator (No, I didn't free memory that was not...
  6. Replies
    10
    Views
    5,508

    Wow, I didn't expect a lecture on how not to use...

    Wow, I didn't expect a lecture on how not to use a language.

    Well I intend on getting better in the C++ language and be able to take advantage of these available libraries that the language...
  7. Replies
    10
    Views
    5,508

    Thanks for the explanation. As for your...

    Thanks for the explanation.

    As for your question, well I'm kinda developing a CAD tool which stores some variable amounts of nodes for each position in the array. Such that array[0] represents...
  8. Replies
    10
    Views
    5,508

    Hi, Thanks for all the replies. I took up...

    Hi,

    Thanks for all the replies. I took up iMalc's advice, sample code below if anyone needs it:



    #include <iostream>

    using namespace std;
  9. Replies
    10
    Views
    5,508

    yup I fixed the numrows and numcols, Well I...

    yup I fixed the numrows and numcols,

    Well I tried that method and some reason I'm still getting segmentation faults but this time it is in my initArray function.

    After the third iteration, it...
  10. Replies
    10
    Views
    5,508

    would you kindly please post the "fix" code on...

    would you kindly please post the "fix" code on here? Some reason I tried doing your suggestion and it didn't work.

    Thanks and with sincerest regards
  11. Replies
    10
    Views
    5,508

    Dynamic Memory Allocation (Seg. Fault)

    Hi everyone, first time user here. I just want to know if anyone can help me with a very simple piece of code.

    In a nutshell, I would like to dynamically allocate memory for a 2D array using new...
Results 1 to 11 of 12