Zoo tutorials: [ SQL | Linux | XML ]
ProgZoo: [ Java | C# | VB | C++ | Perl ]
Log in

A Gentle Introduction to
C++ Programming

String - Extracting a substring

 

Functions

String - Extracting a substring

1. [ C++ ] substring


Big

Show the first 5 characters of the name. Show characters from position 5 to the end. For countries that start with "K".

The first character is position 0. If two number are given you get characters upto (but not including) the second number.