No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
7 Posted Topics
Hi, The constructor will be called only when the instance is first created. In your function definenum you does not seem to be doing anything. So the value of your private variable remains zero (This is initialised in the constructor.)
Hi i am trying to understand manipulators. Can someone explain what is happening here [code=C++] for (int i = 0; i < n; i++) { cout << setiosflags(ios::left) << setw(15) << item[i] << setw(8) << setprecision(0) << code[i] << setiosflags(ios::right) << setw(8) << setprecision(2) << setiosflags(ios::fixed | ios::showpoint) << cost[i] …
Hi, I have given only some part of the code related to my problem. I have problem while compliation. I have the problem in the constructor of the class RMstore. i Get the following compilation error rmremote_server.cpp: In function `int main()': rmremote_server.cpp:196: error: no matching function for call to `RMStore::RMStore(std::string)' …
Use the following to make the function call [code = C++] old_ship.overlaps(*new_ship); [/code] You have defined to function to catch a reference and you are sending pointer the object which would be a mismatch
make sum = 0 after you have calculated the sum of first month.
You can directly make the call to the function as follows setStartupDirectory(m_pApplicationFolderNarrow);
Hi i have written a code for concatenation of two strings by overloading the string operator. The program works fine but i don't understand the sequence of steps happening. [code][Use language = C++] #include <iostream> using namespace std; class String { int len; char *p; public: String () { cout …
The End.
sweeya