Forum: C++ Dec 19th, 2008 |
| Replies: 4 Views: 601 Hi,
Thanks, using resetiosflags worked. I was under the impression that they are mutually exclusive. Anyways, how is it working for the first one correctly?(just want to understand what is... |
Forum: C++ Dec 19th, 2008 |
| Replies: 4 Views: 601 Hi i am trying to understand manipulators. Can someone explain what is happening here
for (int i = 0; i < n; i++) {
cout << setiosflags(ios::left) << setw(15) << item[i]
<<... |
Forum: C++ Dec 19th, 2008 |
| Replies: 1 Views: 302 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... |
Forum: C++ Dec 8th, 2008 |
| Replies: 10 Views: 706 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... |
Forum: C++ Dec 5th, 2008 |
| Replies: 5 Views: 341 make sum = 0 after you have calculated the sum of first month. |
Forum: C++ Dec 5th, 2008 |
| Replies: 3 Views: 412 You can directly make the call to the function as follows
setStartupDirectory(m_pApplicationFolderNarrow); |
Forum: C++ Dec 5th, 2008 |
| Replies: 6 Views: 503 Use the following to make the function call
old_ship.overlaps(*new_ship);
You have defined to function to catch a reference and you are sending pointer the object which would be a mismatch |
Forum: C++ Nov 30th, 2008 |
| Replies: 3 Views: 493 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.
#include <iostream>... |