小编non*_*non的帖子

什么"调试断言失败"意味着如何解决它,c ++?

为什么这个程序在运行时给我一个"Debug Assertion Failed"错误信息

#include "stdafx.h"
#include "iostream"
#include "fstream"
#include "string"
using namespace std;

int conv_ch(char b)
{
    int f;
    f=b;
    b=b+0;
    switch(b)
    {
    case 48:
        f=0;
        break;
    case 49:
        f=1;
        break;
    case 50:
        f=2;
        break;
    case 51:
        f=3;
        break;
    case 52:
        f=4;
        break;
    case 53:
        f=5;
        break;
    case 54:
        f=6;
        break;
    case 55:
        f=7;
        break;
    case 56:
        f=8;
        break;
    case 57:
        f=9;
        break;
    default:
        f=0;
    }
    return f;
} 

class Student
{
public:
    string id;
    size_t id_len;
    string first_name; …
Run Code Online (Sandbox Code Playgroud)

c++ debugging assertions

0
推荐指数
1
解决办法
7万
查看次数

标签 统计

assertions ×1

c++ ×1

debugging ×1