Upon research I actually found the answer to my previous question. Why the heck is the computer telling me I can't define the elements of my array.
#include <iostream>
using namespace std;
int x;
int y;
int main(){
char DuplicateDeleter[6];
//we must define each element
DuplicateDeleter[0] = 'a';
DuplicateDeleter[1] = 'b';
DuplicateDeleter[2] = 'c';
DuplicateDeleter[3] = 'd';
DuplicateDeleter[4] = 'e';
DuplicateDeleter[5] = 'f';
}
The answer was that I had to use 'a' over "a", and my question is what's the difference between these two? I was under the suspicion that they pretty much did the same thing. What is "x" telling the computer that 'x' isn't?
error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive] - source