Question: 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 ofthe C++ string class. Do NOT not use the string header; use

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!