I have tried initialising my int cate[catNum]
array into all 1
s, when cout<<cate[1]
, it outputs 0
? I don't know what the problem is, theoretically it should be 1?
int main ()
{
int const catNum = 13;
int cate[catNum]= {1};
cout<<cate[1]<<endl;
}