NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error C2181

illegal else without matching if

Each else must have a matching if. The following sample generates C2181:

void main() {
   int i = 0;

   /* use an if to resolve the error
   if(i)
      i = 0;
   */

   else      // C2181
      i = 1;
}