String Function

Write your question here.Develop a C++ program that accepts the names and years of ten movies that were released between 1990 and 2009 (you must include validation). If the movie year was released in the 1990s use a string function to save only the two last digits of the year; if the movie year was in the 2000s use another string function to replace the 2nd and 3rd digit with a single k. (e.g. if the year was 1998 then the array should store 98 and if the year was 2008, then the array should store 2k8). Ultimately display the name of all the movies with the modifications to the respective year values.

hello
Topic archived. No new replies allowed.