Click here to Skip to main content
15,892,809 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help with _tioa and other conversion routines Pin
Mark Salsbery3-Jul-08 7:04
Mark Salsbery3-Jul-08 7:04 
GeneralRe: Help with _tioa and other conversion routines Pin
Larry Mills Sr3-Jul-08 9:04
Larry Mills Sr3-Jul-08 9:04 
Question'strptime': identifier not found, even with argument-dependent lookup Pin
dinesh_shads2-Jul-08 12:02
dinesh_shads2-Jul-08 12:02 
AnswerRe: 'strptime': identifier not found, even with argument-dependent lookup Pin
dinesh_shads2-Jul-08 12:04
dinesh_shads2-Jul-08 12:04 
AnswerRe: 'strptime': identifier not found, even with argument-dependent lookup Pin
Saurabh.Garg2-Jul-08 16:50
Saurabh.Garg2-Jul-08 16:50 
QuestionAccelerator Key Pin
Anthony98872-Jul-08 9:54
Anthony98872-Jul-08 9:54 
AnswerRe: Accelerator Key Pin
Nelek3-Jul-08 22:08
protectorNelek3-Jul-08 22:08 
QuestionC++ program help counting frequency of char. entered. Pin
michael12012-Jul-08 9:10
michael12012-Jul-08 9:10 
Write a program that prompts the user to enter text from the keyboard. The text is read until Ctrl+Z is entered, i.e., the end of file is reached. The program should count the frequency of each digit and of each letter of the alphabet (but it should not distinguish an uppercase letter from a lowercase letter). When the user finishes inputting text, the program should display each letter and its frequency in a table format. Also, the number of special characters (i.e. not letters nor digits) should be reported.
Hint: Declare an array of counters, one for each letter and for each digit. Use the letter and the digit itself as the subscript that determines which array element to increment. To do this the program must convert the letter and the digit to the corresponding subscript (the ASCII values of the lowercase letters are 97 – 122, the ASCII values for the uppercase letters are 65 – 90 and the ASCII values of the 10 digits are 48-57).

Example:

The following input:
Th1s 1s a test.^Z
Should produce the following result:
1 2
a 1
e 1
h 1
s 3
t 3
Special symbols:4
Additional requirements:
- the program cannot use global variables
- the program must contain at least two functions called count and printReport; formal parameters can be added to these functions (if necessary)


i need a code ASAP plz any help is appreciated. ive been working this code for days and its almost due.
AnswerRe: C++ program help counting frequency of char. entered. Pin
Maximilien2-Jul-08 9:33
Maximilien2-Jul-08 9:33 
GeneralRe: C++ program help counting frequency of char. entered. Pin
led mike2-Jul-08 9:49
led mike2-Jul-08 9:49 
GeneralRe: C++ program help counting frequency of char. entered. Pin
CPallini2-Jul-08 10:07
mveCPallini2-Jul-08 10:07 
GeneralRe: C++ program help counting frequency of char. entered. Pin
Mark Salsbery2-Jul-08 10:51
Mark Salsbery2-Jul-08 10:51 
AnswerRe: C++ program help counting frequency of char. entered. Pin
David Crow2-Jul-08 9:51
David Crow2-Jul-08 9:51 
AnswerRe: C++ program help counting frequency of char. entered. Pin
CPallini2-Jul-08 9:59
mveCPallini2-Jul-08 9:59 
AnswerRe: C++ program help counting frequency of char. entered. Pin
Bram van Kampen2-Jul-08 12:28
Bram van Kampen2-Jul-08 12:28 
Questionabout Win32 DLL Pin
zhoogle2-Jul-08 21:42
zhoogle2-Jul-08 21:42 
AnswerRe: about Win32 DLL Pin
Iain Clarke, Warrior Programmer2-Jul-08 23:11
Iain Clarke, Warrior Programmer2-Jul-08 23:11 
GeneralRe: about Win32 DLL Pin
Bram van Kampen3-Jul-08 0:32
Bram van Kampen3-Jul-08 0:32 
Question(MFC/SDI App) Deliver the user-defined messages from MainFrame to Document Object failed... Pin
oppstp2-Jul-08 6:25
oppstp2-Jul-08 6:25 
QuestionRe: (MFC/SDI App) Deliver the user-defined messages from MainFrame to Document Object failed... Pin
Mark Salsbery2-Jul-08 6:31
Mark Salsbery2-Jul-08 6:31 
AnswerRe: (MFC/SDI App) Deliver the user-defined messages from MainFrame to Document Object failed... Pin
oppstp2-Jul-08 9:27
oppstp2-Jul-08 9:27 
GeneralRe: (MFC/SDI App) Deliver the user-defined messages from MainFrame to Document Object failed... Pin
Mark Salsbery2-Jul-08 10:49
Mark Salsbery2-Jul-08 10:49 
GeneralRe: (MFC/SDI App) Deliver the user-defined messages from MainFrame to Document Object failed... Pin
oppstp2-Jul-08 15:55
oppstp2-Jul-08 15:55 
QuestionSaferGetLevelInformation Fails!!! Pin
Aabid2-Jul-08 3:21
Aabid2-Jul-08 3:21 
AnswerRe: SaferGetLevelInformation Fails!!! Pin
rp_suman2-Jul-08 5:00
rp_suman2-Jul-08 5:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.