I need this program please.....

Using array and functions crate a program that asks the user to enter the information of ten of his\her friends (name, phone, DOB) and than primo the information in a form of a report

Create a string array similar to below
std::string sArray[10][3];

Use cin or similar to populate the elements of that array.

Post here, your attempts.

I would go with an array of structures

struct personal
{
    std::string name;
    std::string phone;
    std::string DOB;
};

personal per[10];

Edited 3 Years Ago by gerard4143

A little update

struct personal
{
    std::string name;
    std::string phone;
    std::string DOB;
};

int main(){
personal per[10];

static short count=0;
while(count <10){

//ask for name entry
//then cin
cin>>per[count].name;
//ask phone
cin>>per[count].phone;

cin>>per[count].DOB;
count++;

}
return 0;
}

If you cant get this to work, then i guess if i produce the whole code you still can not get that to work either. Show me what you have done so far.....

I appreciate what you have done ... i don't do any thing i am still in the beginning of learning a programing languge .

if you could solve this program please i really need it today .

Welcome to reality. Many of us have worked with someone who cheated their way to a job and couldn't perform. It's not a good situation for a team, so you'll probably get no sympathy.

Next time work harder and start sooner, because you can't expect someone to bail you out if you can't meet a deadline.

thank you for helping me and i realy appreciate who had bring me the idea,,,,

Edited 3 Years Ago by Samier999: no

This question has already been answered. Start a new discussion instead.