--Originally published at Valeria CT
I found that this quiz was pretty simple because I had just read how to look for a certain character in a string in the book How To Think Like a Computer Scientist.
I did a program with the template that Ken provided which can be found here:
https://github.com/valeriact/tc1017/blob/master/quizweek10.cpp
And another which actually asks the user to input a string and the character that he or she wants to look for:
https://github.com/valeriact/tc1017/blob/master/quizweek10-2.cpp
Here are the resources that helped me:
- How To Think Like a Computer Scientist
- https://stackoverflow.com/questions/5882872/reading-a-full-line-of-input/5882896#5882896
- https://www.dropbox.com/s/cd4eipmii5lx35e/quizweek10.cpp?dl=0
-Valeria