[Solved] Using cin, if statement, and array not working


Code:

string myArray= "a, 0, 0, 0, 0, 0, 0, 0, 0";
int pushregister; cin >> pushregister;

if (pushregister == a) {
    myArray = "a, 1, 0, 0, 0, 0, 0, 0, 0"; cout << myArray;
}
else {
    cout << "Wrong input" << endl;
}

return 0;

3

solved Using cin, if statement, and array not working