Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5339

troubles about using goto statements

$
0
0

my CVI is CVI2013.

in a function called Send(),which is defined myself,i used goto statements to jump out of switch statements inside of for statements.

which is showed below:

int Send()

{

       for(...) //the first for

       {

             if()//the first if

            {

                   for()//the second for

                  {

                        switch()

                         {

                                  case 1:

                                  goto         Label1;

                           }//end of switch

                   }//end of the second for

             }//end of the first if

   Label1:  continue;    

     }//end of the first for

}

when i compiled it ,it showes:

" 485, 49 error: use of undeclared label 'Label1'",

"624, 1 error: use of undeclared identifier 'Label1'"

why?

 


Viewing all articles
Browse latest Browse all 5339

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>