I am a C++ beginner, so sorry if the question is too basic.
I have tried to collect the string constrcturs and try all them out (to remember them).
strin
In C++, as in C, there is a rule that says that anything that looks like a declarartion will be treated as a declaration.
string strA();
looks like a function declaration, so it is treated as one. You need:
string strA;