| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 2291 人关注过本帖
标题:vs2015调试不了,错误看不懂。。
取消只看楼主 加入收藏
moox
Rank: 2
来 自:福建
等 级:论坛游民
帖 子:92
专家分:93
注 册:2017-1-21
结帖率:82.35%
收藏
 问题点数:0 回复次数:1 
vs2015调试不了,错误看不懂。。
程序代码:
#include<iostream>
using namespace std;
/*int check(char one);
int check(char one, char two);
int numberDecode(string code)
{
    if (code[0]=='0'||code.size() == 0) return 0;
    if (code.size() == 1) return check(code[0]);
    int fn = 0, fn_1 = 0, fn_2 = 1;
    fn_1 = check(code[0])*check(code[1]) + check(code[0], code[1]);
    for (int i=2; i < code.size(); i++)
    {
        if (check(code[i])) fn += fn_1;
        if (check(code[i - 1], code[i])) fn += fn_2;
        if (fn == 0) return 0;
        fn_2 = fn_1;
        fn_1 = fn;
    }
    return fn_1;
}
int check(char one)//check the rage from 1 to 9
{
    return (one != '0') ? 1 : 0;
}
int check(char one, char two)//check the rage from 1 to 26
{
    return (one == '1' || (one == '2'&&two <= '6')) ? 1 : 0;
}
int main()
{
    string s = "24";
    cout << numberDecode(s) << endl;
    return 0;
}*/
int main()
{
    cout << "hello world" << endl;
    return 0;
}

错误:
1>------ 已启动生成: 项目: NumberDecode, 配置: Debug Win32 ------
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(355,5): error MSB6006: “CL.exe”已退出,代码为 -1073741515。
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========
是少了什么东西吗。。代码没问题vc6上可以运行出结果的。。。
搜索更多相关主题的帖子: int check one code return 
2018-01-07 18:31
moox
Rank: 2
来 自:福建
等 级:论坛游民
帖 子:92
专家分:93
注 册:2017-1-21
收藏
得分:0 
编程谜题?我也这个错误问题,不知道怎么解决就换codeblocks了
2018-01-28 10:52
快速回复:vs2015调试不了,错误看不懂。。
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014627 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved