Could someone please write a simple program for me?!

This is a discussion on Could someone please write a simple program for me?! within the C++ Programming forums, part of the General Programming Boards category; Im trying to write a program that reads in characters from a user speci ed input file and displays the ...

  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    1

    Exclamation Could someone please write a simple program for me?!

    Im trying to write a program that reads in characters from a user speci ed input file and
    displays the character and the characteristics of the character, e.g., lower
    case, etc.
    Speci cally, test if the character:
     is a letter.
     if the character is a letter, test if it is lower case or upper case.
     if the character is a letter, test if it is a vowel or consonant.
     is a control character (# is less that 32).
     is a digit.
     if the character is a digit, test if the value is odd or even.
     is a punctuation character.

  2. #2
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Be completely fascinated with this:

    ASCII Table / Extended ASCII Codes

    An introduction to the significance:

    http://en.wikipedia.org/wiki/ASCII

    ASCII codes represent text in computers, communications equipment, and other devices that use text. Most modern character-encoding schemes are based on ASCII, though they support many more characters than did ASCII.
    That includes C/C++.
    Last edited by MK27; 03-28-2010 at 11:04 PM.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. c program that accepts and executes commands?
    By Cimposter in forum C Programming
    Replies: 3
    Last Post: 09-30-2009, 02:58 PM
  2. Replies: 1
    Last Post: 12-30-2007, 09:08 AM
  3. Need help with simple, simple program.
    By LightsOut06 in forum C Programming
    Replies: 5
    Last Post: 09-01-2005, 08:31 PM
  4. Problem with simple XOR program
    By spike_ in forum C++ Programming
    Replies: 8
    Last Post: 08-17-2005, 12:09 AM
  5. simple frontend program problem
    By gandalf_bar in forum Linux Programming
    Replies: 16
    Last Post: 04-22-2004, 06:33 AM

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