title: Get unlimited char in Cpp
body: <p>I want to get unlimited chars, actually I created char*, I use cin for it, and I want to change it to string.
  I don't know the length of the input which user enters, so I made this solution for myself.
  Can someone tell me plz, how to get a char* without knowing the size of input and converting to string.
  thanks. </p>