Hello
I have a very simple question yet can't find answer. I need to store key from user input in a char but don't know how to set correct size without causing buffer errors.
Code:
char key[50]
if user enter more than 50 characters then exe will crash. I would like to use like a string
Code:
std::string key
where no size initialize is required. Any idea ?