so this is the code that i'm working on and i get this error about binary and the std string. i want to see of the guess matches one of the coordinates in the string and i'm not able to.
#include <iostream>
#include <string>
usingnamespace std;
int main() {
int guesses, destroy, numAttempts = 11;
string guess, i;
string coordinate[3] = {"B1", "C4", "D3"};
cout << "Let's play a quick game of battleship... destroyer!" << endl;
cout << "The objective of this game is to destroy the 3 ships on the computers grid. You have 10 chances to do so." << endl;
cout << "Enter in a coordinate between A-1 and D-4 (i.e. C4): ";
cin >> guess;
guesses = 0;
destroy = 0;
if (guess == coordinate) {
cout << "Target hit! Next target: ";
cin >> guess;
destroy++;
guesses++;
}
else {
cout << "Target missed. Try again: ";
cin >> guess;
guesses++;
}
}