
Lesson 3-5: String Functions
60 | Chapter 3
Name __________________________________________ Date _______________________
Section _________________________________________
Use the following program shell for Exercises 1 through 3.
// Program Strings applies string functions.
#include <iostream>
#include <string>
using namespace std;
int main ()
{
return 0;
}
Exercise 1: Write a named string constant made up of your first and last names with a blank in
between. Write the statements to print out the result of applying length and size to your named
constant object. Compile and run your program.
Exercise 2: Add statements to your Exercise 1 program to print your ...