C++ II, Quiz 2

Quiz 2 – Display all of the vowels from user input. Display the vowel input the most and the number of times it was input.
My grade: 25 out of 30.
Professor’s comments:
“Good job

However you can’t use

const int SIZE = 10000;
char *inputPtr = nullptr;
inputPtr = new char[SIZE];  //pointing to dynamic char array

because this way you are creating a small non-dynamic memory space to get around the issue of capturing and dynamically allocating just the EXACT amount of memory”

Quiz 2
https://github.com/Velourious/quiz_2/tree/master
(Click “main.cpp” to see program)

Leave a comment