Design it first (i.e. think about what you want it to do), then write the code.
Queue full and queue underflow are two different conditions and you cannot check for them both at the same time (well, you could, but there's not...
Well, it's going to be very hardware dependent. Are you sure the person who wrote the above partial code REALLY gave you ABSOLUTELY NO clues how...
In Windows you just create a printer HDC object and draw your output to that instead of to the screen HDC. It's really easy; if you can display...
For Windows programming you need to read Petzold's book Programming Windows. That's where *all* Windows programmers start.
No. Look again at the definition of a sequence point. It is a point after which all side effects are guaranteed to have been completed. It is...
Where are you stuck?
This doesn't make sense. * dereferences the pointers, so if ptr, high and low contain addresses, then *ptr, *high and *low represent the values...
Taken exactly as stated there is no meaning because of the obvious syntax error: there should only be two semicolons within the brackets. i & lt...
"Not working" isn't a very clear description. How exactly isn't it working? What do you observe? What do you expect? Where does the program...
Can you get the problem to reproduce with a simple test program, maybe one that just uses a vector of strings with some duplicates?
The example at http://www.cplusplus.com/reference/stl/vector/end/ uses iterator < end, rather than iterator != end. Maybe that's the problem?...
What does limits.txt contain? (NB: please only post the MINIMAL amount of data needed for the problem.) Also what input do you give the program?...
First of all when posting code, USE CODE BLOCKS. Not doing so shows you haven't read the posting guidelines. This is bordering on rude, but you...
Hi, welcome to the vast world of programming. Two of the most essential tools you need are Google and Wikipedia. Googling each type of sort -...
Well, I just did. Any of the approaches I outlined can be used to spot, remove or otherwise process duplicates.
Bit tricky when I don't know what the code is supposed to do. But if you are looking for duplicates, say in a set containing ABCDE, then you'll...
This isn't difficult. Where are you stuck? Do you understand what AND and OR do? (Presumably not, otherwise finding the answer would be...
Depends how the segment and offset are merged. In one x86 mode they are simply concatenated, so the result would be 0x08D20140. But in another...
With this kind of error I find it helpful to line the two things it can't match against each other so it becomes clearer exactly what the problem...
Separate names with a comma.