Help!! :))

If 1 is 3,
what is 5?

The answer above is 4 (the size of the string "five", thanks to summy!). Create a program that keeps on asking random numbers until the user will type any non-integer input. The program must use size() or length() methods of the string class.

Programming Clues: Use rand(), srand(), switch, isdigit(), size() or length(), atoi(), c_str(), and modulus division(%).

who can help to make this program?
tnx
No one. You need to know how to do it yourself.
closed account (1vRz3TCk)
Duoas, Surly most people here could help him but they probably will not unless he shows some effort on his part?
If 1 is 3 then McTaggot is the Pope.
Proof available on request.
Sorry, Duoas ;)
Last edited on
closed account (zb0S216C)
arham214 wrote:
If 1 is 3 (sic)

Yeah, and I built a fully functioning operating system within a 24 hour time frame.

arham214 wrote:
who can help to make this program? (sic)

Requesting a solution won't get you anywhere fast. Have you made a genuine attempt? If so, post your code and we'll help you based on that.

Wazzak
Last edited on
The OP explained his problem quite well, probably exactly as it was given to him, so it is pretty silly to attack him on it.

The issue is that he is asking for a handout instead of learning for himself.
I`m asking for an algorithm onLy.,. then i`m the one who will make the program!!tnx
Writing the algorithm and writing the program are pretty much the same thing.
The thing you need to learn is how to translate your thoughts into code.

First, get out a piece of paper and a stylus. (I like construction paper and crayons. Or if you need, some graph paper and a pencil with an eraser.)
Write down how you would solve the problem, not using a computer.

After that, make the computer do the same thing you did.

Being able to do that is part of the grade, and the purpose behind programming.
Topic archived. No new replies allowed.