/***************************************************************
* Name: Prof. Orta
* Course: Computer Science & Programming
* Class: CS04103 Section: 4 & 5
* Assignment Date: 04/20/25
* File Name: Chapter12.cpp
*****************************************************************
* Purpose: Explain the use of string conversion using STOI
*****************************************************************/
#include <iostream>
using namespace std;
int main()
{
// In the statement below we use size_t to find out the nunber of integers
int number; size_t where;
string data ="23 dozen";
number = stoi(data, &where);
cout << "The result of the conversion is: " << number << " and the value of where is: " << where;
return 0;
}