I'm the beginner and I'm learning C++ .My teacher order me to make a program to find the longest name and I can't do it help me .(When I ask my teacher he always say only where I should change but I forget how to correct it.)
read my code
This references how to use the string::length function. There are better ways to write this code and I would recommend getting the name into a string first. string name = "Zachary";
Then use the string length function to count how many letters are in your string. name.length();