首页 > 解决方案 > 在 c 中运行此程序时,我收到“Frame Not in Module”错误

问题描述

嗨,写这个是为了能够保存一个无限大小的字符串,但是在运行它 VS 2019 之后,虽然输出是正确的,但它没有结束程序,而是显示一个页面,其中包含“框架不在模块中”作为标题和排序冷冻

#pragma warning(disable : 6385)

#include <time.h> 
#include <stdlib.h>
#include <stdio.h> 
#include <inttypes.h>
#include <math.h>
#include <assert.h>
#include <sys\timeb.h>
#include <ctype.h>
#include <stddef.h>
#include <string.h>
#include <float.h>
#include <wchar.h>


main() {
    int maxline = 2;
    int a = 0;
    char c; char line[3]; int i = 0;

    while ((c = getchar()) != EOF && c != '\n') {
        i++;
        
        line[a++] = c;
        
        if (i == maxline) {
            line[maxline+=4];
        } 
        
        
}
    line[++a] = '/0';


    while (--a > 0) printf("%c", line[i-a]);
    return 0;
}

标签: cmodule

解决方案


推荐阅读