Electrical and Computer Engineering
40
of 52
UAH
CPE 112
The
substr
Function
•
Sample function call:
–
myString.substr(5, 20)
•
Substr returns a string, the
arguments to it are of type
string::size_type
.