I am new to pointers and I was wondering if someone can take a look at my code and tell me why I am getting an error " invalid conversion from Char to Char;
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
int main (int argc, char * const argv[]) {
int stringlenght;
string input;
cout << "Please enter a string >";
getline(cin,input);
cout << "You entered: " << input << endl << endl;
stringlenght=input.length();
cout << stringlenght;
char *inputArray[stringlenght];
for (int i=0; i < stringlenght; i ++) {
inputArray[i]=input[i];
}
//system("pause");
}