Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Rewrite the program from the lesson by using C-strings instead of the C++ string class. Do NOT not use the string header; use the cstring
Rewrite the program from the lesson by using C-strings instead of the C++ string class. Do NOT not use the string header; use the cstring header instead. Create and use the functions described below to extract the length, location of 'w', year, customer number and order number from the workorder #include(string) using namespace std; /eed this if working with string class Bint main(O int strlength, wPointer string custlueber, year, workrderNumber string workOrder "91880 948778 strlength workOrder.length) wPointer workOrder.find('w,e) custNumber.assign(workrder, e, wPointer); /extracting the customer number year.assign(workorder, wPointer 1, 2)i I/the year is the two digits after the w workrderNumber.assign(workOrder, Pointer 3, strlength)i extracting the work order number /Irenenber the first digit in the string is a e EIAAAA CIS 1202 Topic 6New cout
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started