I'm trying to back-up in my programming and learn something that I somehow missed (unless I'm not understanding the problem). I am trying to prompt the user to enter the name of a project, and I want to store that name in a variable. Normally I would use getline() or std::cin >> std::string some_string but the assignment is asking me to do this, without the use of strings. "You can NOT use the string class - instead use array's of characters." Therein lies the question: How do I take the user input and store them in an array of chars?
The user is going to enter a word and then hit enter... How do i capture that into an array of chars? If the word was coming in one char at a time I could just add it to the array, dynamically expanding if needed, but when it comes in a block of char's like that I am lost for ideas. Thanks!