Question: The Problem You will be completing a program that prints out your name and age to stdout. All the code you write will go in

The Problem
You will be completing a program that prints out your name and age to stdout. All the code you write will go in hello.cpp
TODO:
Create a variable to hold your age
Create a variable to hold your name
Initialize the values of these two variables
Write a function hello that takes no arguments and returns a std::string containing the following text: "Hello world! My name is your_name and I am your_age years old." where your_name and your_age are the values of your name and age variables.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!