You are passing the value and trying to free the memory. But where is the address of y? You should pass the address to f(void f(int *y); ) ... From:...
Krishnan Nair
Krishnan.Nair@...
Jul 1, 2004 7:11 am
2110
Hi There The only way to stop your class being used for inherited ( I Guess ) is to have a "Private Constructor" but then you could't create an object of the...
Make your constructor private.Then any other class inherting it will have run time problem provided u don't hve any friend member or u r returning reference of...
Srinivasa, Please let me know the compiler name nad its version. With 'gcc' (version '2.95.2') I didn't find any problem with both release and debug build....
Ujjwal Konar
ukonar@...
Jul 1, 2004 7:11 am
2114
Plz ans. my question.Plzzzzzzzzzzzzzzzzzz......... How is it possible to insert different type of elements in stack? Stack can be described as a pointer....
hi snethil i blv by making your base class constructor private or protected , irfan Programmers-Town@yahoogroups.com wrote: hi all, can anybody tell me, how...
Hi There The only way to stop your class being used for inherited ( I Guess ) is to have a "Private Constructor" but then you could't create an object of the...
make ur constructor private regards Balamurali C ... From: "P. Senthil Kumar" <senthilkumar@...> Date: Mon, 28 Jun 2004 12:40:18 +0530 To:...
Balamurali Chellappan
c_balamurali@...
Jul 1, 2004 7:11 am
2118
... Hi there The only way for your problem would be to have a "Private Constructor ( no argument )" but then you would't be able to create an object too. The...
Make all constructor and copy constructor as private. for creation of objects provide a static function say Create().... this way if some class tries to...
error is with the line "delete x;" you are passing a const "10" in other words this memory is not allocate on heap for "10" or int y. so you are not suppose to...
... Hi, 2 mistakes: 1. Expected o/p is abc as for loop works from 0 to 2 (i<3) 2. Should work out fine, but one more problem is that u have created a string of...
Hi all #include<stdio.h> void f(int y) { /* ==> Here 'y' is local to the function and is coming from "STACK" not from Heap and value of "y" is "10" */ int *x; ...
Dear friend, I suggest you to kindly enter your details in the group's database. Its available at the following link... ...
Programmers-Town@yaho...
Jul 1, 2004 10:45 am
2124
... hi man see following code i wrote a class MyClass which cant be inherited due to virtual inheritance of a class xlock, in construction of object all the ...
heap and stack ? when one does "new" operator the memory is allocated from heap ? and all function calls and local variables etc are taken care by the stack ?...
Hi All, I need to check for memory leaks in my project. I would like to replace malloc in all files of my project with macro RajAllocMem(). This macro we need...
You post exactly the same stuff in other groups. Did you get any reply? Do you know why? Most groups will NOT do your homework for you. We're here to help...
hiiii in this program u r trying to delete the address which u have not created using malloc or calloc.y is created in stack and u r trying to delete the...
Home Work???? ... __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail...
should have tried it. before asking !! :( -jayant ... __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! ...
Hi, Iam using VC++ 6.0. When I compile it in debug mode and run, it is giving "Debug assertion failed". No error in release build. Thanks. & Regards, Srinivasa...
srinivasa.bhoompalli@...
Jul 2, 2004 4:43 am
2136
hi friends i required floowing program in c++ Design and implement using C++ a class stack of integers with appropriate constructors/destructors (if any) and...