#include <iostream>
#include <string>
int main() {
// Step 1: Declare a string variable to store the original string.
std::string originalString = "This is the original string.";
// Step 2: Define the starting position for the substring.
size_t startPosition = 10; // Change this value to your desired starting position.
// Step 3: Use the substr() function to extract the substring starting from the specified position.
std::string substring = originalString.substr(startPosition);
// Step 4: Print the original string and the extracted substring.
std::cout << "Original String: " << originalString << std::endl;
std::cout << "Substring from position " << startPosition << ": " << substring << std::endl;
return 0;
}