im creating something i like to call a complex hello world. im extremely new to coding let alone c++ and to start i made a hello world. i know how to do that with ease now so i decided to try and make something a little more complicated. I'd like my program to first ask "Would you like to see the hello world?" and then based off of the user inputing "yes" or "no" it will either respond with "hello world" or close the program. i thought that I could possibly use booleans for this but im stuck. I need to know how to create a code that reads what the user types, like "yes" and then outputs the hello world.
Like:
if (the user"s answer) = yes cout << "Hello world!" << endl;