No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
13 Posted Topics
Hi, i am compiling the code in HP itenium server and i am getting an error. "Filename.cpp", line 129: error #2308: more than one instance of overloaded function "std::basic_string<_CharT, _Traits, _Allocator>::assign [with _CharT=char, _Traits=std::char_traits<char>, _Allocator=std::allocator<char>]" matches the argument list: function "std::basic_string<_CharT, _Traits, _Allocator>::assign(const std::basic_string<_CharT, _Traits, _Allocator> &) [with _CharT=char, _Traits=std::char_traits<char>, …
Was I right in believe that thisMyClass was out of scope in myFunction()? NO, you sending a pointer to the function and then deleting it. so thr should notbe any problem or memory leak. Am I right in passing by reference in this case where I am expecting thisMyClass to …
just look at the suntax of stcmp() and u will be able to understand. int strcmp ( const char * str1, const char * str2 ); it take address of the char, not the char.
I do have some doubts and i need help from you. When we call a function which is virtual from a base class pointer to which the address of derived class object, it sees where vpointer, from vpointer it gets the address fo virtual table, manipulate offset and call the …
or probably the range i.e 10 you are puting, that number of characters are not there in the string that you want to replace. so, just check the value of the string and debug it.
as the error show it is a 64 bit machine, you need to include -fPIC at your compailation line and it should work then.
Hi, some time back i faced question like this. we ca use factory design using factory desing implementation. we can do the same using the shared laibrary, like we will have a static function in the shared laibrary which will be returning pointer to base class object. what is the …
Hi i am doing a client server program in c. waht i feel is everytihng is correct in the c code but there is some problem in the setting. here is the server code [CODE] /* Make the necessary includes and set up the variables. */ #include <sys/types.h> #include <sys/socket.h> …
Hi Guys, is there any other way to use shared library in unix and linux platform apart from dlopen() and dlsym(). Thanks.
the program has many pros, 1. constructor has no definition. 2. in the cout u r trying to access the private variables directly write a contructor and a public function to access display the private data
Hi friends, i have to delete a node in a link list and the prototype for the delete function is like this void deleteNode(struct node**, int pos). "Pos " is the position of the specified node in the list. And have to write it with all boundry condiotions. Help me
hi i m a new member. i have a question. so plz answer me if any one have the answer. how can i delete a node without traversing the linkedlist. let's say want to delete the third node of the linkedlist without traversing it. thank u
The End.
tarakant_sethy