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...
Type: Posts; User: dr_jaymahdi
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...
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...
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.
can anyone please help?
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...
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...
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...
Hi,
Thanks for all the replies. I took up iMalc's advice, sample code below if anyone needs it:
#include <iostream>
using namespace std;
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...
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
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...