here is what i have,
Code:
int main(int argc, char *argv[])
{
int size = 0;
cout << "Ascii Converter" << endl;
cout << "By Jason Underhill" << endl;
cout << "-----------------------" << endl;
cout << "Enter the string to be converted to ASCII:" << endl;
string word;
cin >> word;
size = strlen(word);
char w[] = word;
return EXIT_SUCCESS;
}
and here are the errors i get:
/home/teishu/C++/ascii_converter/src/ascii_converter.cpp:41: error: cannot convert ‘std::string’ to ‘const char*’ for argument ‘1’ to ‘size_t strlen(const char*)’
/home/teishu/C++/ascii_converter/src/ascii_converter.cpp:42: error: initializer fails to determine size of ‘w’