In some programming languages, strings are entered surrounded by either single or double quotation marks. Write a program that reads the three strings suzy, "suzy" and 'suzy'. Are the sin- gle and double quotes ignored or read as part of the string?

What will be an ideal response?


```
#include
#include
using namespace std;

int main()
{
string input; // string to hold input string

// ask user to enter three strings and then
// store and display the strings
for ( int k = 0; k < 3; k++ )
{
cout << "Enter a string: ";
cin >> input;
cout << "String is " << input << '\n';
} // end for
} // end main
```
Enter a string: suzy
String is suzy
Enter a string: 'suzy'
String is 'suzy'
Enter a string: "suzy"
String is "suzy"

Computer Science & Information Technology

You might also like to view...

List the rooms that are currently unoccupied at the Grosvenor Hotel.

What will be an ideal response?

Computer Science & Information Technology

Word's Styles group in the HOME tab contains buttons to format a list with bullets or numbers.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

You can add a(n) ________ to a report or change the background color of a report using the same techniques you used in forms

A) command button B) bound control C) unbound control D) background picture

Computer Science & Information Technology

List three characteristics that can serve as a guide to evaluate design quality.

What will be an ideal response?

Computer Science & Information Technology