Code:
#include <iostream>
using namespace std;
struct database {
string name; // declares that the structure has a string
// in it called name.
int main()
{
cout<<"Enter your name.\n"; //displays the obvious
getline(cin, name, '\n'); // records the user's input into the string name,
// and terminates the command
Leave a comment: