#include <iostream>
#include <vector>
using namespace std;
int main(){
vector<string> row(7, "0");
char input;
int pos;
cin >> input;
cin >> pos;
if(input == X )
row[pos] = 1 ;
//ascii value of 1 is 49
if(row[pos] - 49 == 0)
cout << "Correct";
return 0;
}
我在上一份<代码>if说明中留下了一个错误。 它为什么不发挥作用,我如何加以纠正? 这样,<代码>rowhas就成为一种扼杀性病媒,我就能够将其变成任何其他类型。
参看row[pos]
,以在的
。