Предварительная загрузка аудио файла с winmm.dll в C #

В C89 переменная может быть определена только в верхней части блока.

if (a == 1)
    int b = 10;   // it's just a statement, syntacitially error 

if (a == 1)
{                  // refer to the beginning of a local block 
    int b = 10;    // at the top of the local block, syntacitially correct
}                  // refer to the end of a local block

if (a == 1)
{
    func();
    int b = 10;    // not at the top of the local block, syntacitially error, I guess
}
0
задан Alireza MH 25 February 2015 в 12:40
поделиться