Below is a code that i have created to seperate a string statement. There are no errors but the code will not display the micron or the idustry statement. what do i need to do so that everything will show
#include <iostream>
#include <string>
#include <fstream>
#include <cstdio>
#include <cctype>
#include <iomanip>
#include <cstdlib>
using namespace std;
int main()
{
string productNumber;
cout << endl << setw(40) << "ENTER IN PRODUCT NUMBER: ";
cin >> productNumber;
string type = productNumber.substr(0,1);
string buildCode = productNumber.substr(2,3);
string micron = productNumber.substr(4,5);
string lenght = productNumber.substr(6,6);
string endone = productNumber.substr(7,7);
string endtwo = productNumber.substr(8,8);
string oring = productNumber.substr(9,9);
string industry = productNumber.substr(10,10);
cout << "\n\n\t" << type << micron << industry << endl;
return 0;
}