
- Forum
- Programming Talk
- C and C++
- Conversion to Char
Conversion to Char
This is a discussion on Conversion to Char within the C and C++ forums, part of the Programming Talk category; Hello, vector<string> str; Is it possible to convert the above statement to char? If Yes, Kindly tell me how with ...
-
Conversion to Char
Hello,
vector<string> str;
Is it possible to convert the above statement to char?
If Yes, Kindly tell me how with an example program.
Thank in advance.
Lokesh M
-
In your example stated the vector hold the string str. It is possible to get the size of vector in using the function str.size() and then you can access each character in the string by using the looping construct till the end of vector size.

Reply With Quote





