I am getting an Error stating canot convert string to Char type
code is as follows
/*
Jonathan Thomas
ITSE 2421 intro to object C++
begin sudo code:
function takes in string variable called "verb"
function uses string function verb.length to determine length of string assigns value to size
compares last value in the string whether it is a consanant or an E
function convert string to array
converts back to string
if last letter is 'e' the letter will be dropped and replaced with 'ing' using verb.replace(size,3,ing)
*/
#include<iostream>
#include<string>
using namespace std;
void createParticiple(string);
bool isVowel(char);
int main()
{
string verb;
cout<<"this prgram conjugates verbs into the past participle"<<endl;
cout<<"please enter a verb in lower case letters NO CAPITOLS!!!"<<endl;
getline(cin, verb);
createParticiple(verb);
system("pause");
}//end of line
void createParticiple(string verb)
{
int size= verb.length();
string s2;
string LL;
string NTL;
char *lastLetter[1];
char *nextToLast[1];
LL= verb.substr( size-1, 1);
NTL= verb.substr(size-2,1);
lastLetter=&LL[0];
nextToLast=&NTL[0];
if (*lastLetter== "e" && isVowel==false )
{verb.append(size-1, "ing");};
if (isVowel==false && *lastLetter!="e" )
{verb.append(size-2, nextToLast);
verb.append(size, "ing") ;}
}
bool isVowel(char nextToLast)
{
if (nextToLast=='a' || nextToLast=='e' || nextToLast=='i' || nextToLast=='o' || nextToLast=='u')
{ return true;}
else {return false;}
}