im new to C++.

I want to get a string with std::cin and call it in the main and print it with std::cout.

I already tried a few things but it didn't work for me.
The last method I tried was this one:

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

string person(string personname)
{
    std::cin >> personname;
    return personname;
}

int main()
{
    std::cout << person();    
}

```