Save Time & improve Grades
- Questions Asked
- Experts
- Total Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!
Write a program that deals with strings. The program should display the following menu:
String Handling Program
Press (a or A) for count the number of 'A' in a given string:
Press (c or C) for write strings to a file:
Enter your selection:
int countLetter(char *sPtr)
Sample output:
String Handling Program
Press (a or A) for count the number of 'A' in a given string:
Press (c or C) for write strings to a file:
Enter your selection:a
Enter a string :BananA
Number of A's in BananA is 3
String Handling Program
Press (a or A) for count the number of 'A' in a given string:
Press (c or C) for write strings to a file:
Enter your selection:c
Enter the strings to be saved into the file:Intro
>> To
>> Programming
>> ^z(EOF)
String Handling Program
Press (a or A) for count the number of 'A' in a given string:
Press (c or C) for write strings to a file:
Enter your selection:y
Wrong Selection.
Ask a question
Experts are online
Answers
Login/SignUp to view answers