goto

    1热度

    5回答

    我在看YUI Compressor并在ECMA.NET项目中找到这段代码(如果您有兴趣,请继续阅读)。 protected internal override int FindPrototypeId (string s) { int id; #region Generated PrototypeId Switch L0: { id = 0;

    8热度

    7回答

    你好,我有一个批处理文件,像这样: if %day%==monday, tuesday, wednesday, thursday, friday ( goto yes ) else ( goto no ) 现在我知道第一线将无法正常工作。 什么其实我是想发生: 它automatticly检查,它是一天。如果是星期一至星期五,则必须转到“是”,否则(星期六/星期日)转到“否”。 如何做到这一

    0热度

    4回答

    我正要重构这个VB6代码(由别人写的)。 Public Function GetValue(ID As Long) As Boolean On Error GoTo eh '' ... DAL Logic... eh_Exit: On Error GoTo 0 Exit Function eh: Resume eh_Exit End Fu

    16热度

    1回答

    此代码导致未定义行为: void some_func() { goto undefined; { T x = T(); undefined: } } 的构造不叫。 但是这个代码呢? x的析构函数会被调用吗?我认为这将是,但我想确定。 :) void some_func() { { T x = T(); got

    24热度

    9回答

    我正在VB.NET中编写一些使用switch语句的代码,但在其中一种情况下需要跳转到另一个块。在C#中它看起来像这样: switch (parameter) { case "userID": // does something here. case "packageID": // does something here. case "mvrT