XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P4: Low
    • None
    • 2.8.1 (rev.06)
    • Debug/test integration
    • None

    Description

      string vvv = "a1"; //如果vvv="" 同样 stoi 会崩溃
      int nn1 = 0;
      int nn2 = 0;
      nn1 = atoi(vvv.c_str());
      nn2 = stoi(vvv);

      当执行到 stoi 的时候程序会崩溃,不知道这是不是正常情况,但是 atoi 就是好的

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mecfc Miguel Costa
            goldwood 倍 张
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes