Answers for "Write a c++ loop to read n characters from the keyboard and store them in the vector v."

C++
0

Write a c++ loop to read n characters from the keyboard and store them in the vector v.

for(int i = 0; i < n; i++)
    {

     cin >> ch;

     v.push_back(ch);
    }
Posted by: Guest on April-07-2021

Code answers related to "Write a c++ loop to read n characters from the keyboard and store them in the vector v."

Browse Popular Code Answers by Language