Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Fundamentals Study Guide

Authors: Dr. Sergio Pisano

1st Edition

B09K1WW84J, 979-8985115307

More Books

Students also viewed these Databases questions

Question

What is the size of the COTS product user base?

Answered: 1 week ago