О брекетах в операторе «корпус» в «Переключате»C++

Программы на C++. Форум разработчиков
Anonymous
О брекетах в операторе «корпус» в «Переключате»

Сообщение Anonymous »

Today, while I was trying to write code to just add and subtract the two 2*2 matrices, in which I used a switch statement, I got an error:

case bypass initialization of local variable in function main()

Code

Код: Выделить всё

#include 
#include 
#include 

int
main()
{
int mat1[2][2], mat2[2][2], mat3[2][2];

cout > mat1[i][j];
}
}

cout > mat2[k][l];
}
}

cout 

Подробнее здесь: [url]https://stackoverflow.com/questions/7044574/about-the-braces-in-a-case-statement-in-switch[/url]

Вернуться в «C++»