c - 在 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;
}
解决方案
推荐阅读
- javascript - 根据数组对象数据创建一个新数组
- date - 两个日期之间的序列,仅按指定的工作日,跳过所选的周数
- c++ - 如何为这个函数制作 lambda?
- node.js - “gulp serve”正在返回我无法将 Web 部件添加到的 workbench.html
- batch-file - 许多启动命令在同一个窗口中批处理
- javascript - innerHTML 赋值删除空标签中的所有(包括最后一个)空格
- python - 我可以在我的 android 应用程序中包含 linux 可执行文件吗?
- python - 无法从其他文件导入函数名称
- javascript - Disable and enable button by over or under age 18 Javascript
- ios - 使用 AVPlayer 播放和缓存远程资源