c - 3 x 7 编程

标签 c buffer-overrun

我一直在尝试编写 3x 7 技巧的程序。完整代码可在此处获得:https://codereview.stackexchange.com/questions/9419/programming-of-3-x-7-trick .

我卡在了第 5 步。

enter image description here

当我输入该行的值时出现此错误。

enter image description here

不确定错误是什么。需要一些指导。

第 6 步:enter image description here

最佳答案

该错误来自 back_to_array 函数,您在内循环的条件中有错字。应该是j < numRows而不是 i < numRows .

关于c - 3 x 7 编程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9451862/

相关文章:

c - for 循环中的实际指令

c - Fscanf 读取 c 中 float 和字符的混合

c# - 在完全托管的 asp.net c# web 应用程序中是否可能发生缓冲区溢出/溢出

c - 即使禁用 ASLR 和堆栈编译器保护程序,ROP 在 Linux 上也会失败

memory-management - 从缓冲区外部读取是否也算作缓冲区溢出?

c++-cli - 使用 Marshal::GetFunctionPointerForDelegate 并从非托管代码调用回调会导致退出应用程序时缓冲区溢出

c 制作一个 const 结构数组的副本

c - 为函数提供地址时 Xcode 中预期出现 ')' 错误

c - C 中空指针的自由数组