我不知道我的错误在哪里。看来我忘记了最基本的东西。
int xy [2];
cout << "Input X: ";
cin >> xy[0];
cout << "\nInput Y: ";
cin >> xy[1];
for ( int y = 0; y < 10; y++ )
{
for ( int x = 0; x < 10; x++)
{
if ( x = xy[0] + 5 && y == xy[1] + 5)
{
cout << "°";
}
else
{
cout << "+";
}
}
cout << "\n";
}