Some of the beauties of C++ strings: as a class, they overload certain operators so that you can establish a value, compare, and append, with the...
Maybe I'm dense, today. If you instantiate a menu item that inherits form a menu class with common methods, and you don't override those, then...
Perhaps I'm misconstruing your requirements. Why not just a base class (MenuVector) that contains all the common data and methods. The various...
Here's the deal about doing this. You want to emulate the registers in a uP. To do this, you need to tie the register identification to a...
Actually, you don't even need a thread. You can have character input raise an event. Neither threads nor events are a part of the C/C++...
Construct the file name complete with path.
Do you want to use C or C++? I'm preparing an example, but I won't mix my code, such as you have done. The use of "goto", while not evil, is...
Re: Help!!! Use a more descriptive subject line and read the "Before you make a query" thread. Then think. Then ask what you really want to...
You need to learn how to post a question. Since we're only mind readers on the second Tuesday of each week, you should TELL us things. How is it...
There are a number of issues with your program. Since you're writing C++, I don't see why you want to include stdio.h and stdlib.h. Even if you...
So where are you assigning these results? seed1 * 16777216; seed2 * 65536; seed3 * 256; Also, you're not smart if you don't check...
1.6 is not a 'definite fraction' in base 2. Even so, that has nothing to do with the problem, per se. If i*2, however correctly or incorrectly...
One presumes that the assignment's purpose is to help you learn C++, and not to inspire you to use someone else's material for a good grade. If...
Off-topic, but possibly useful nugget of information for the OP's next post: Java != Javascript.
Ever_thus gives a great example. You might also consider this: if a 32-bit float has more range than a 32-bit integer, where's the magic? There...
Have you consulted the help files? Read your documentation? I would suggest that developing personal initiative and resourcefulness is as...
Do you have an actual question here, or are you looking for someone to do your work for you?
Have a look here. Perhaps bcc presumes too much.
Good idea. "sprintf (y, "%s%d", y, x);" will definitely work the same as "sprintf (y + strlen (y), "%d",x);". Since sprintf is set up to...
Search through recent posts in this forum for the proper use of scanf. Hint: most people's names cannot be successfully converted to a floating...
Separate names with a comma.