Forum: C++ Mar 10th, 2009 |
| Replies: 9 Views: 294 Then I too cannot help you do your assignments, but believe me I will offer more than the traditional rituals in prayer to request GOD to help you get your assignments done. ;)
Okay on a more... |
Forum: C++ Mar 10th, 2009 |
| Replies: 9 Views: 294 The forum announcement here (http://www.daniweb.com/forums/announcement8-2.html) suggests that no one here would be willing to provide you homework help unless you show some effort. But I ain't much... |
Forum: C++ Mar 8th, 2009 |
| Replies: 3 Views: 639 I haven't had much experience generating these puzzles but to comment on the difficulty levels, here's what I think:
The first thing that comes to my mind is, the more the number of empty cells the... |
Forum: C++ Feb 19th, 2009 |
| Replies: 2 Views: 218 It's a bit difficult to give an example of memory leak, because it almost always happens accidently without the developer even knowing it. Memory leaks bugs almost always plant themselves so subtly... |
Forum: C++ Feb 19th, 2009 |
| Replies: 5 Views: 366 Why not you can go ahead and start one. I am sure there are enough C/C++ "gurus" who might be able to throw much more light on that subject and also bring out a few things that many of us still don't... |
Forum: C++ Feb 19th, 2009 |
| Replies: 4 Views: 262 The post above your post, specifies exactly where the problem lies |
Forum: C++ Feb 19th, 2009 |
| Replies: 5 Views: 366 The above two posts have already informed you about the "side-effect" of the pointer assignment. I just want to add to it that would throw some light on the memory leak part.
When you permanently... |
Forum: C++ Feb 18th, 2009 |
| Replies: 11 Views: 926 Read the posts written above. |
Forum: C++ Feb 17th, 2009 |
| Replies: 4 Views: 286 I assume this is an exam question, and your urgency in the PM tells me that you might actually be answering one.
I am not keen on giving answers straight up, more so in your case, because of some... |
Forum: C++ Feb 17th, 2009 |
| Replies: 11 Views: 926 As mentioned in my previous post, I have for long lost touch with C++, but I assume from what I know, that none of the current collection of GNU compilers use the .h suffix. The new crop of compilers... |
Forum: C++ Feb 17th, 2009 |
| Replies: 11 Views: 926 From what comes to my mind immediately after seeing this, you are in effect copying only about half of the string since you begin by assigning i to 0 and j to the last character of the word, then you... |
Forum: C++ Feb 17th, 2009 |
| Replies: 4 Views: 286 Well there can be thousands of correct values here for the variables that you mention. For ex: ABCDE could be 4 and EDCBA could be 16, ABCDE could be 16 and EDCBA could be 64, etc, etc. So you cannot... |
Forum: C++ Feb 17th, 2009 |
| Replies: 4 Views: 302 for(int x=1;x<=(num);x++)
Since 1 is not a prime number don't begin your loop with it, rather initialize x to 2.
Definition of prime : An integer greater than one is called a prime number if... |
Forum: C++ Feb 17th, 2009 |
| Replies: 11 Views: 502 To explain you the concept of universe in set theory, will have to give you an example.
Say, you have a set of men who play football, a set of men who play cricket, and set of men who play baseball.... |
Forum: C++ Feb 16th, 2009 |
| Replies: 11 Views: 502 VernonDozier has already given you the directions, if you have taken a look at them you would understand it on your own.
To tell you in brief about Operator Overloading : It is to attach a... |