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

[ad_1]

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

[ad_2]

solved Using cin, if statement, and array not working