The program will ask the user to enter the class code, name, section, and the names of each of the students in the class. Then the list will appear in the output.
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
cout << "To create a class list please enter the class name, code and section\nDo not use symbols, only letters & numbers\nList only supports up to 15 students\n\n";
cout << "Please enter class name: ";
cin >> cname;
cout << "\nPlease enter class code: ";
cin >> csec;
cout << "\nPlease enter class section: \n\n";
cin >> ccode;
it crashes when name #16 is entered....it should not eaven ask for a 16th name, just 15....this is my first time crating arrays & functions at the same time.