Please send questions to st10@humboldt.edu .

/*---------------------------------------------------------------- 
  Contract: main: void -> int

  Purpose: playing with C strings and the standard string class

  Examples: demo, so not really applicable

  By: Sharon M. Tuttle
  last modified: 12-7-05
  -----------------------------------------------------------------*/

#include <iostream>
#include <string>
using namespace std;

int main()
{
    const int MAX_LENGTH = 5;

    string name;
    char another_name[MAX_LENGTH];

    cout << "type in a name: ";
    cin >> name;

    cout << "type in another name: ";
    cin >> another_name;

    cout << name << endl;
    cout << another_name << endl;

    return EXIT_SUCCESS;
}