| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1233 人关注过本帖
标题:报错:0x00B32009 处有未经处理的异常(在 nengdopng.exe 中): 0xC00000FD: ...
只看楼主 加入收藏
bignbingji
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2018-9-28
结帖率:0
收藏
已结贴  问题点数:20 回复次数:2 
报错:0x00B32009 处有未经处理的异常(在 nengdopng.exe 中): 0xC00000FD: Stack overflow (参数: 0x00
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char const *argv[])
{
    double a[621][621];
    //for (int i = 0; i < 621; i++)
    //    for (int j = 0; j < 621; j++)
    //        a[i][j] = 0;


    FILE *fpread = fopen("f:\\666.txt", "r");
    if (fpread == NULL)
    {
        printf("ERROR::FAIL TO READ!\n");
        exit(-1);
    }
    int i = 0;
    for (int i = 0; i < 621; i++)
        for (int j = 0; j <621; j++)
        {
            fscanf(fpread, "%le", &a[i][j]);
        }
     for(int i = 0; i < 621; i++)
     {
         for(int j = 0; j < 621; j++)
         {
             printf("%le ", a[i][j]);
         }

     }
    printf("%le\n", a[0][1]);
    system("pause");
    return 0;
}
搜索更多相关主题的帖子: 处理 int for i++ printf 
2018-09-28 22:40
bignbingji
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2018-9-28
收藏
得分:0 
栈溢出问题怎么解决?这才621*621的矩阵,以后还要用更大的
2018-09-28 22:40
rjsp
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
等 级:版主
威 望:528
帖 子:9007
专家分:53942
注 册:2011-1-18
收藏
得分:20 
那就用堆呗
(double a[621][621] 大约3M,而VC默认只有1M,虽然可以调整,但没必要,还是malloc比较好)
2018-09-29 08:46
快速回复:报错:0x00B32009 处有未经处理的异常(在 nengdopng.exe 中): 0xC0000 ...
数据加载中...
 
   



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

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