Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

reverse.cpp: In function 'void displayBackwards ( std::string ) ' : reverse.cpp: 2 0 : 3 1 : error: 'pos' was not declared in this scope

reverse.cpp: In function 'void displayBackwards(std::string)':
reverse.cpp:20:31: error: 'pos' was not declared in this scope
20| displayBackwards(s.substr(pos.len));//returns the substring of s s o
f length len staring at poston pos (zero is frist postion)
???
[jhuang93@hills ]$ nano reverse.cpp
GNU nano 2.9.8
reverse.cpp
#includes==0s Dof length len staring at poston pos (zerois frist postion)
=s.size();
if(length==0)???? base case
cout
image text in transcribed

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

Next Generation Databases NoSQLand Big Data

Authors: Guy Harrison

1st Edition

1484213300, 978-1484213308

More Books

Students also viewed these Databases questions