printf() and scanf() are C functions
Oh and I don't appreciate being called a hairy muff either, if that is what you meant in your reply heading.
Like you said, cout is a C++ object, and it is quicker to do this:
Code:
std::cout << "Enter your name: ";
std::cin >> name;
To this:
Code:
printf("Enter your name: ");
scanf("%s", &name);
But that is rather irellevant. Do you know how to go about the problem you have? If you are stuck for a program solution, use pen and paper and draft a TDD ( top down development ) of the program. If it looks like it will work, code it in C++ and see what happens.