Release: Typing Wizard

This is a discussion on Release: Typing Wizard within the Game Programming forums, part of the General Programming Boards category; Don't mind the cheesy name, I'm not feeling creative This console app calculates your WPM by giving you (lame) sentences ...

  1. #1
    Registered User abrege's Avatar
    Join Date
    Nov 2002
    Posts
    369

    Lightbulb Release: Typing Wizard

    Don't mind the cheesy name, I'm not feeling creative

    This console app calculates your WPM by giving you (lame) sentences to type. Also has options to record your data in a file which can be reopened. Includes the source. Try it out and give me suggestions!
    Attached Files Attached Files
    I am against the teaching of evolution in schools. I am also against widespread
    literacy and the refrigeration of food.

  2. #2
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    That's very impressive, except sometiems I start to type so fast it won't even enter my characters. Other than, I think you did a fantastic job.

  3. #3
    Registered User Bieh's Avatar
    Join Date
    Sep 2002
    Posts
    83
    Thats pretty cool

    I got 58.6047 WPM. Is that good?
    "It always takes longer than you think, even when you take Hofstadter's Law into account."
    -Hofstadter's Law

    Bored? Try my game SpaceWars , made in Allegro and VC++
    or see my new game Redoubt , made in OpenGL and VC++

  4. #4
    Evil Sock Puppet MadHatter's Avatar
    Join Date
    Nov 2002
    Posts
    176
    looks good... a few things tho..
    the ding gets annoying. with other programs like this i've seen, it leaves yer mistakes there, and adds a certain ammount of time (not sure how much) for each mistake (thus lowering yer WPM).
    maybe add some more sentences...
    also, main() needs some cleaning up, but that kind of goes without saying...

    i think i averaged around 90 WPM
    If I had a world of my own, everything would be nonsense. Nothing would be what it is, because everything would be what it isn't. And contrariwise, what it is, it wouldn't be, and what it wouldn't be, it would. You see?

  5. #5
    Registered User abrege's Avatar
    Join Date
    Nov 2002
    Posts
    369
    Thanks for the positive feedback, guys! Here I removed the annoying beeps, added more sentences, and fixed a filestream issue.

    BTW, I average at 70 wpm
    Attached Files Attached Files
    I am against the teaching of evolution in schools. I am also against widespread
    literacy and the refrigeration of food.

  6. #6
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    ARGH! You've used a goto!

    Code:
    	while()
    	{
                     if(intro()==1)
                     {
    		outfile();
    		break;
                     }
    	if(intro()==2
                    {		
                                    if(infile()==true)
    		break;
                    }
    	if(intro()==3)
                    {
    		cout << endl;
    		system("pause");
    		return -1;
    	}
    How about this?
    Don't know if it'l work just typed here by hand


    [edit]

    Deuuuh, you canNOT type code using this board posting system

  7. #7
    Registered User abrege's Avatar
    Join Date
    Nov 2002
    Posts
    369
    lol I found a way around goto

    Code:
    // Main menu
    while(1)
    {
    	mmChoice = intro();
    
    	if(mmChoice == 1)
    	{
    		outfile();
    		break;
    	}
    	else if(mmChoice == 2)
    	{
    		if(infile())
    			break;
    		else
    			continue;
    	}
    	else if(mmChoice == 3)
    	{
    		cout << endl;
    		system("pause");
    		return -1;
    	}
    }
    I am against the teaching of evolution in schools. I am also against widespread
    literacy and the refrigeration of food.

  8. #8
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    Actually i think goto is a way around loops

  9. #9
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    How come many newbies are using goto?

    I learned C++ from a book and I haven't seen any book that uses goto.
    I actually learned templates before I even knew that the keyword goto existed. Where do all newbies learn about goto?
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  10. #10
    Registered User abrege's Avatar
    Join Date
    Nov 2002
    Posts
    369
    My book explained goto very early on
    I am against the teaching of evolution in schools. I am also against widespread
    literacy and the refrigeration of food.

  11. #11
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    Actually i don't know how GOTO works exactly in c++
    (SO DONT EXPLAIN IT), but i'm not planning to learn it, because
    it's something that makes programming easyer for newcomers
    you NEVER EVER need to use GOTO in a program, you can
    always solve things with loops

  12. #12
    I lurk
    Join Date
    Aug 2002
    Posts
    1,361
    Originally posted by Travis Dane
    Actually i don't know how GOTO works exactly in c++
    (SO DONT EXPLAIN IT), but i'm not planning to learn it, because
    it's something that makes programming easyer for newcomers
    you NEVER EVER need to use GOTO in a program, you can
    always solve things with loops
    label:
    cout << "I'm evil";
    goto label;

    You're cursed!!

  13. #13
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    Originally posted by Eibro
    label:
    cout << "I'm evil";
    goto label;

    You're cursed!!
    You're not worthy of using that avatar!

  14. #14
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    I think many newbies use goto because they have background in BASIC and QBASIC (and probably others) which used them frequently. I remember when I wrote in those languages long ago I had MANY gotos!

  15. #15
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    Actually my language before this one was QBasic,and indeed
    i used tons of goto's, but immidiatly quit using them in c++

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. debug release conf problem
    By fighter92 in forum Game Programming
    Replies: 6
    Last Post: 03-20-2009, 05:39 PM
  2. assembly code for release code?
    By George2 in forum Windows Programming
    Replies: 4
    Last Post: 07-09-2008, 12:17 PM
  3. smart pointer release
    By George2 in forum C++ Programming
    Replies: 24
    Last Post: 02-13-2008, 08:51 AM
  4. AddRef and Release
    By George2 in forum C++ Programming
    Replies: 20
    Last Post: 02-07-2008, 01:19 AM
  5. Results in Debug and Release mode are different
    By jaro in forum C Programming
    Replies: 11
    Last Post: 05-27-2006, 12:08 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21