Im trying to create a program that will seperate out a product number like FAP831A-B. each letter and number means something different so I need a code that will divide the product number up.

You can access each digit using a std::string

std::string number = "NAB";
    for(int i = 0; i < number.size(); i++)
      std::cout << number[i] << std::endl;

Dave

commented: Simple, yet effective. +1
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.