title: convert array string into char
body: <p>i have taken all txt from file and place line by line into array of string. I am trying to split this string so that i can save word by word in separate array. Kindly just tell me how shell i convert the array of string into char.</p>
  
  <p>for example </p>
  
  <pre><code>string line[15];  // line[0] has : was there before
                    // line[1] has : then after
  
  char * pch;
  char *c = line.c_str();   // string to char  (i am getting error here. Any body know?)
    pch = strtok (c," ");
    while (pch != NULL)
    {
      printf ("%s\n",pch);
      pch = strtok (NULL, " ");
    }
  </code></pre>
  
  <p>error:  C2228: left of '.c_str' must have class/struct/union</p>