Page 1 of 1

C++ PROGRAMMING

Posted: Tue Jul 05, 2022 10:19 am
by answerhappygod
C++ PROGRAMMING
C Programming 1
C Programming 1 (57.33 KiB) Viewed 15 times
Question 6 (5) Write a program that initialises a vector with the following string values: "what" "book" "is" "that" "you" "are" "reading". Display the contents of the vector on the screen to the user as a question and read in the name of the book the user is reading (you can decide what it will be). Have the program add the name of the book to the vector, word by word. For example, if I am reading "How to learn C++", the program should add the words, "How" "to" "learn" "C++", one by one to the vector. Display the new vector. Remember to plan your program!