No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
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>, … |
|
Re:
Hello, please can I have some clarification to check I am not doing something very stupid? It seems sensible with all that I have read, but I'm not confident. I suspect I have memory leaks and want to make sure some fundamentals are correct before I start looking deeper. My … |
|
Re:
Hai everyone, I have one doubt... Can u please clarify this... If i put char a[10]="hai-hello" [I][CODE]if(strcmp(a[4],'-')==0)[/CODE][/I] then it will displays an error [B][I]strcmp' : cannot convert parameter 1 from 'char' to 'const char *'[/I][/B] Wat is the reason for this? Can anybody tell me |
|
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 … |
|
Re:
Hi :) I am using basic replace function but getting some runtime error as below:- [CODE]terminate called after throwing an instance of 'std::out_of_range' what(): basic_string::replace Aborted [/CODE] I already know the position where I should replace so don't need to find it. Can somebody tell me how to avoid this … |
|
Re:
Hi, I'm working on a shared library with a various of dependency libraries. They are all currently linked dynamically (shared object). I'd like a few of the libraries linked statically TO the main shared object. When I go ahead and try to link these libraries (.a) I get an error … |
|
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. |
|
Re:
I'm having an issue that so that Book A and Book B's Author and Title will print at the end of the program. So This will verify that the overloaded = is functioning. #include <iostream> using namespace std; class Book { public: Book(char*, char*); private: char* title; char* author; public: … |
|
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 |
|
Re:
please help me to write algorithms in c++ such as OPT,LRU and FIFO algorithms in memory management |
|
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 |