Seems OK so far. Now you need to iterate over the map, extracting pairs of numbers. Do you understand how to do that? I'm guessing you've...
How far have you got and where are you stuck? Do you understand the requirements, and how to use an STL map? Do you have any code yet?
Re: Write a program in C to Determine the following information about a positive inte How far have you got and where are you stuck? Do you...
Also // assigning the pointer to null, to reuse suggests some misunderstanding. You do not need to set a pointer to NULL to reuse it. This is...
You get the segfault because you've already deleted the object pointed to by bptr_2 when you delete dptr. If you create an object pointed to by...
Padding. In short, each item of a different type is on a 4-byte boundary. So char p effectively takes up 4 bytes (well, it doesn't because it's...
Simple. Look at the bit field like this: cccccccbbbbbaaaa 0000000000110010 Now work out the decimal value of 110010: 32+16+2=what?
I've no idea what any of that means. Please post in English.
Post the answers you already have and state in what way you think they are deficient, and we will see if we can improve on them. This will show...
OK. What are your outstanding questions?
Post your complete code; it's impossible to find bugs in code we can't see.
Dev C++ is not a supported compiler. You will need to use Microsoft Visual C++, which is available as a free download from MSDN. (Visual Studio...
Which page? "Azkaban algorithm" returns over 1 million hits (although most are probably about Harry Potter). But probably the answer to that...
Have you tried Googling it?
How far have you got and where are you stuck? Do you understand the requirements?
Just strip them out. Copy the letters to a new string, so the old string is "madam i'm adam" but the new string is "madamimadam".
OK, but post your code as well, because I can't see where you went wrong if I can't see your code.
No, just think about where you want getline to get a line from. In this code: getline(cin,inp); from your original post, where do you think...
Your best bet will be to post on the Phidgets forum http://www.phidgets.com/phorum/ It's unlikely anyone around here will have the detailed...
Your chosen approach is not the correct one. Simply use the assignment operator: string str1="Hello"; string str2=str1; cout<<str2; Output...
Separate names with a comma.