This is the code in the main() portion of the program:
 int numFiles;
 cout << "How many signal files are there?";
 cin >> numFiles;
 char singalFiles[numFiles][100];
 string backgroundFile;
 for (int i=0;i<numFiles;i++){
    string singalFile;
    cout << "Please input the name of singal file" << i << ".";
    cin >> singalFile;
    singalFile >> char singalFiles[i][100];
    string backgroundFile;
    cout << "Please input the name of background file" << i << ".";
    cin >> singalFile;
    backgroundFile >> char backgroundFiles [i][100];
 }
This is the code I am writing as part of a research project. I was wondering if somebody could help me with this. I am very new to c++ and do not know how to get the strings to write into a char array.
I am having trouble reading the strings into the char array so they can be stored there. That is, I am trying to read each of the strings called backgroundFile and signalFile into the char arrays backgroundFiles and singalFiles.
 
     
    