Babygirl1276 Babygirl1276
  • 12-10-2017
  • Business
contestada

Use function getuserinfo to get a user's information. if user enters 20 and holly, sample program output is:

Respuesta :

meerkat18
meerkat18 meerkat18
  • 25-10-2017

#include<iostream>

#include<string>

using namespace std;

void GetUserInfo(int &userAge, string &userName)

{

cout << "Enter your age: " << endl;

cin >> userAge;

cout << "Enter your name: " << endl;

cin >> userName;

return;

}

int main() {

int userAge = 0;

string userName = "";

/* Your solution goes here */

GetUserInfo(userAge, userName);

cout << userName << " is " << userAge << " years old." << endl;

return 0;

}

Answer Link

Otras preguntas

What is the value of the x and the y? -3x-7y=-63
Which of the following is not necessarily true?
How many times in American history has the Presidential candidate who won the popular vote gone on to lose the electoral vote? A. One. C. Five. D. Seven.
What is polytheism? brainliest you
What is hetero female
4. (acostarse) a. Nosotros ________________________ tarde. b. (Yo) ________________________ primero. c. Mi padre prefiere leer antes de ________________________
I still don't get it.
Write the balenced complete ionic equation for the reaction wh KI and AgNO3 are mixed in aqueous solution
(6,1),(7,2),(8,3) what is the range
HELP ASAP PLEASE!! WORTH 100 POINTS CORRECT ANSWER GETS BRAINLIST