If I have for example the following statements:
char f_name[11];
std::cin.getline(f_name,10);
Does thia mean:
* Declare a string with 11-characters wide?
* Read the entered line and pass it as the value for “f_name”?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, you are correct!
declares the array
f_namewith11elements.prompts for the value to be entered, which then stores it in
f_name[11].