#include #include #include // required for string conversion function library int main() { const int MAXELS = 20; char string[MAXELS] = "12345"; int num; double dnum; num = atoi(string); cout << "The string \"" << string << "\" as an integer number is: " << num; cout << "\nThis number divided by 3 is: " << num / 3 << endl; strcat(string, ".96"); dnum = atof(string); cout << "The string \"" << string << "\" as a double number is: " << dnum; cout << "\nThis number divided by 3 is: " << dnum / 3 << endl; return 0; }