Do you know how to pick one random number?
Pick 4 random numbers. Check if any are equal. If they are, change one. Repeat until you have no more duplicates.
You've only posted half the code. Please post the entire program.
What code have you got so far? How will the user choose a word from the array: will you display the words and ask them to pick one, and how will...
What doesn't it do that you want it to? We can't read your mind.
How far have you got and where are you stuck? Do you know how to multiply without using a multiply? (Hint: What is 10^(log a + log b), using log...
Hire a programmer.
How far have you got and where are you stuck? Try writing the code a bit at a time and make sure each bit works before moving onto the next bit....
The string class implements the syntax you're trying to use, i.e. assigning strings with = and comparing them with ==. If you don't want to use...
By the way, rand() returns a new random number each time it is called, so cout <<rand () %101 << "\n"; would not be expected to display r. If...
If you format the code correctly the problem should be obvious: #include <iostream> #include <time.h> using namespace std; void main() {...
isdigit takes a char parameter and returns TRUE or FALSE depending on whether it's a digit or not. So the following will output 01:...
Work on it step by step, making sure each bit works before moving on to the next bit. Don't try to write the whole program in one go before...
First display the @ at the starting position. When the user presses a key, determine the new position, write a space to the old position and the @...
Alright then, if you want it spoon-fed to you, how about: int c=getch(); Then see what c contains when the user presses "e", for example by...
Try Google.
Take it step by step and make sure each bit works before moving onto the next bit. Don't attempt to write the whole program in one go. Get the...
Use getch() from the ncurses library.
It's a kind of map; it relates numbers 0,1,2,... to the things you keep in the array.
What errors?
Separate names with a comma.