You are trying to cin
to a literal for some reason
cin >> "Temp[1]";
Get rid of the quotes, use correct capitalization, and use the index variable i
.
cin >> temp[i];
8
solved Array Code-Why Won’t it Compile?
You are trying to cin
to a literal for some reason
cin >> "Temp[1]";
Get rid of the quotes, use correct capitalization, and use the index variable i
.
cin >> temp[i];
8
solved Array Code-Why Won’t it Compile?