I am implementing the ALV tree, and I need to read input from the command line.

An example of the command is as follows:

*insert “NAME\_ANYTHING\_IN\_QUOTES\_$” ID*

where *NAME\_ANYTHING\_IN\_QUOTES\_$* is the data being stored in the AVL tree, and ID is used to decide if the info will be stored in the left subtree or right subtree.

Code snipet is as follows:

```
if (comand == "insert")
{
    int ID = 0;
    string Name;
    cin >> Name;
    cin >> ID;
    root = insertInfo(root, Name, ID);
}

```

I can not figure out how to scan in the substring that is between two double-quotes.

Thanks.