Exforsys
+ Reply to Thread
Results 1 to 2 of 2

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 ...

  1. #1
    lokeshm is offline Member Array
    Join Date
    Apr 2005
    Answers
    63

    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


  2. #2
    Ralph is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    114
    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.


Latest Article

Network Security Risk Assessment and Measurement

Read More...