Guys please help me creating a program that would set a timer for the user to type the displayed statement. If the user succeeds in typing it under the given tym, he would be congratulated. Otherwise, the program will give him 3 trys but if he still fails, the program terminates.
For example:
I opened the C++ program.
-----------------------------------------------------
PLease type the statement under the provided time.
The quick brown fox jumps over the lazy dog. 10.00seconds
We don't hand out code just like that because it would encourage people to request for homeworks. Do as much as you can, then post specific questions on specific help that you need.
Over half the problem is just knowing the basics of C++ like having a loop with a control variable. If you need code for that, you just plain haven't studied C++. The basics you can pick up from your textbook or from beginner's tutorials. There's one tutorial in this site, under "Documentation".
oh thank you. so I guess what should I do is to make my own layout of the code then post it here for checking right? Im sorry for that . Well, yeah that might be one of the tendencies of asking codes .
thanks ..ill try to post it here then could please try to check it?
Sure, if I have time, I'll check it out. Just remember to use code tags, because reading unformatted code is the worst. Like this:
[code]
1 2
//See?? Nice, right?
//Plust line numbers if there's more than one line.
[/code]
So read about the basics of the language, then try to solve the problem as much as you can; search the net for examples as there are a ton out there, then post specific questions about things you don't understand.
For example, it is possible that you find 2 examples that do the same thing quite differently. It would be understandable if you posted a question like "What the...? Which is the best way?" Most of the time there is the old-fashioned C way, and there's the new and more friendly C++ way.
So I hope you get the idea: Show us you worked it. Put some backbone into it. If you hit a wall, sream it out and someone will lend a hand.