stl transform error249 (5/7/2012 8:57:18 PM) comp.lang.c++ what's wrong with the following code #include #include #include char *name =3D "HHTT KKK KHH"; std::string lname( name ); std::transform( lname.begin(), lname.end(), lname.begin(), tolower ); The error co... asit
memory allocation/deaalocation in calss831 (4/13/2012 9:02:52 PM) comp.lang.c++ I have a LinkedList class which has a function which allocates memory. I need to add user defined copy constructor and assignment operator. In case of assignment operator, I need to free the existing memory a... asit
only memory allocationj in new927 (11/22/2011 8:14:24 PM) comp.lang.c++ new does the following two things. 1>allocate memory 2>calls constructor can I avoid the 2nd step ? ... asit
const_cast issue223 (11/17/2011 10:57:32 AM) comp.lang.c++ Just go through the code 1 #include 2 #include 3 4 using namespace std; 5 6 double funct1(double& f) 7 { 8 f++; 9 cout(d)); 17 cout(c); 26 k++; 27 ... asit
const and non const parameter passing348 (11/17/2011 10:17:34 AM) comp.lang.c++ why the following code does not compile at line 14 #include #include using namespace std; struct One { void funct1() { cout<<"Testing..."<<endl; } }; void funct2( c... asit
static_cast #3231 (11/17/2011 8:16:08 AM) comp.lang.c++ static_cast is used to convert between enum and integer. the same can be done using c-type casting. then why static_cast is used ?? ... asit
sizeof class642 (10/10/2011 6:22:43 PM) comp.lang.c++ Please go through the following code... #include using namespace std; class Empty {}; class Derived1 : public Empty {}; class Derived2 : virtual public Empty {}; class Derived3 : public Empty { ... asit
overload new for smart pointer129 (9/26/2011 2:21:51 PM) comp.lang.c++ I need to test smart pointer implementation. can somebody give me a overloaded new operator to know the memory management technique? ... asit
from c++ to java #2840 (9/25/2011 6:48:31 PM) comp.lang.java.programmer Hi, I am a c/c++ programmer. I have mostly worked in application development (data processing) in c/c++( 2 years). I have no professional experience in web development. Should I go for java ? Do the industry ... Asit
virtual function and segmentation fault1746 (9/25/2011 2:58:07 PM) comp.lang.c++ Look at the following code snippet.. #include using namespace std; class ex { int i; public: ex(int ii=0):i(ii) {} ~ex() { coutshow(); return 0; } The output here is segm... asit
auto_ptr and sink928 (8/13/2011 10:39:47 PM) comp.lang.c++ auto_ptr has the attribute release(). then what is the need of sink function ?? ... lipun4u(226)
java thread nullPointerException343 (8/21/2011 9:50:40 AM) comp.lang.java.programmer Please check the following code... /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package pc1; /** * * @author asit */ import java.util.concurrent.Sema... lipun4u(226)
code base(not a technical question)1820 (8/23/2011 5:54:35 PM) comp.lang.java.programmer I have a lot of code snippets in my system which I mostly use during development. Is there any tool(like VSS though I don't need version control) in which I can store them and later get whenever I need ? ... lipun4u(226)
servlet instance334 (8/28/2011 8:12:27 PM) comp.lang.java.programmer Who creates Servlet Instance ?? when it is created ?? Is there any chance of creation of multiple instance ?? ... lipun4u(226)
dynamic_cast and generic pointer1025 (9/6/2011 7:38:01 PM) comp.lang.c++ /* * File: main.cpp * Author: asit * * Created on 6 September, 2011, 7:08 PM */ #include #include using namespace std; /* * */ class A { public: virtual void show() { cout(&ob)... lipun4u(226)
improvise LatchCounter436 (9/14/2011 5:40:44 AM) comp.lang.java.programmer Just go throw the sample code. http://kodeyard.blogspot.com/2011/09/countdown-latch-to-measure-sorting-time.html Here, I have made a small utility class which sorts the sample data. I want to generalize the c... lipun4u(226)
virtual function and segmentation fault1746 (9/25/2011 2:58:07 PM) comp.lang.c++ Look at the following code snippet.. #include using namespace std; class ex { int i; public: ex(int ii=0):i(ii) {} ~ex() { coutshow(); return 0; } The output here is segm... lipun4u(226)
sizeof class642 (10/10/2011 6:22:43 PM) comp.lang.c++ Please go through the following code... #include using namespace std; class Empty {}; class Derived1 : public Empty {}; class Derived2 : virtual public Empty {}; class Derived3 : public Empty { ... lipun4u(226)
const and non const parameter passing348 (11/17/2011 10:17:34 AM) comp.lang.c++ why the following code does not compile at line 14 #include #include using namespace std; struct One { void funct1() { cout<<"Testing..."<<endl; } }; void funct2( c... lipun4u(226)
memory allocation/deaalocation in calss831 (4/13/2012 9:02:52 PM) comp.lang.c++ I have a LinkedList class which has a function which allocates memory. I need to add user defined copy constructor and assignment operator. In case of assignment operator, I need to free the existing memory a... lipun4u(226)