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

Maureen spends four times as long riding the train each day as riding the bus. If she spends 75 minutes on the bus and the train all together, how long did she
Translate these sentences into spanish My favorite room is my bedroom because I love to sleep. My bedroom is past the bathroom and before another bedroom. Ther
Can someone please do this for me pleasee
A sleepy dog basks on the carpet near a sunny window. He had his tongue hanging out, with a doggy grin on his face. basks means:
Does anyone know please help I need it done
What kind of government was created by the Articles of Confederation?
what were the COMMON FOODS in the new jersey colony?
Which answer shares a word part with the word below? imperceptible A. impeccable B. interior C. inconsiderate
defferentiate between successful and un successful decision​
Select all statements that are true about the triangles. Triangles A B C ABC and D C B DCB are congruent by the Angle-Angle Triangle Congruence Theorem. Triangl