Purchase Solution

String in C++

Not what you're looking for?

Ask Custom Question

Write a function that accepts a pointer to a string as an argument and capitalizes the first character of each sentence in the string. For instance, if the string argument is "hello. my name is Joe. what is your name?", the function should manipulate the string so it contains "Hello. Myname is Joe. What is your name?"

Ask the user to input a string and then pass the string to the function. The modified string should be displayed on screen. The function should return the number of vowels. The function that accepts the same pointer to the string and returns the number of consonants appearing in the string -- the program should display to the screen BOTH the vowel count AND the consonant count.

Purchase this Solution

Solution Summary

It provides sample comdes to work with string in C++. The response was rated '5/5' by the student who posted the question originally.

Purchase this Solution


Free BrainMass Quizzes
Basic Networking Questions

This quiz consists of some basic networking questions.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.