How convert string of vector<string> s, to char type as using bits/stdc++.h ?
it'll give:Code:#include <bits/stdc++.h> #include <iostream> char ch; vector<string> s; int i=0; while((ch=s[i++])) { cout << ch << '--- ' ; }
: error: cannot convert '__gnu_cxx::__alloc_traits<std::allocator<std::__c xx11::basic_
string<char> >, std::__cxx11::basic_string<char> >::value_type' {aka 'std::__cxx11::basic_string<char>
'} to 'char' in assignment
while((ch=s[i++]))
^
How to solve? Thanks