Thread: First time using kbhit

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Oct 2013
    Posts
    7

    First time using kbhit

    I have no idea on how to do my program. What my should do is only let you type lower case letter and numbers, if you type caps it shouldn't show anything. If someone could help me out please?
    Here's the code:

    Code:
    #include <stdio.h>
    #include <conio.h>
    #include <ctype.h>
    
    
    main()
    {
     printf("type");
        if(kbhit(isupper))
        {
            goto out;
        }
        out:
        getch();
        return 0;
    }
    thanks
    Last edited by Brianop; 11-16-2013 at 06:24 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. kbhit()
    By Rainer in forum C++ Programming
    Replies: 7
    Last Post: 08-04-2003, 08:10 PM
  2. kbhit()
    By McNab in forum C Programming
    Replies: 4
    Last Post: 04-30-2002, 06:57 PM
  3. need more help on kbhit()
    By lordvlaad() in forum C++ Programming
    Replies: 0
    Last Post: 04-20-2002, 02:07 AM
  4. kbhit
    By Kohatian 3279 in forum C++ Programming
    Replies: 2
    Last Post: 04-16-2002, 05:04 PM
  5. kbhit()
    By wesentlich in forum Windows Programming
    Replies: 14
    Last Post: 03-26-2002, 01:09 PM