Question: I need help creating a function addLeadingZeros, that will take 2 parameters. And will add leading zeros to our vector. Add Zeros To Left We

 I need help creating a function addLeadingZeros, that will take 2

I need help creating a function addLeadingZeros, that will take 2 parameters. And will add leading zeros to our vector.

Add Zeros To Left We will also need to add leading zeros to our vector. Write the function to accomplish this. string s1 = "001238042"; vector b1 = toDigits (81); displayDecimalDigits (61); b1 = trimLeadingZeros (61); displayDecimalDigits (61); b1 = addLeadingZeros(b1, 4); displayDecimalDigits (61)

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!