gpt4 book ai didi

c - 当我运行程序时没有任何反应

转载 作者:行者123 更新时间:2023-11-30 15:38:07 24 4
gpt4 key购买 nike

他们刚刚帮我解决了一个问题,100% 解决了,但现在我还有另一个问题。

我编译我的文件和所有内容都没有问题,但是当我想运行该程序时什么也没有发生。

输入.c:http://pastebin.com/GGzVeAhwsimple_interest.c:http://pastebin.com/XdESrxSk

这是我的头文件的样子:

int enter(void);
double Calc_Interest(double principal, double rate, int term);
double Calc_Amount(double principal, double interest);
double Calc_Payments(double total, int term);
void Display_Results(double principal, double interest, double total, double mPay);

PS 这个论坛真的很有帮助,特别是对于像我这样的初学者。

最佳答案

您在 main() 中有一堆原型(prototype),但没有函数调用。

应该是:

int main(void)
{
enter();
return 0;
}

您似乎对如何声明和使用函数感到非常困惑,也许您需要一些教程?

关于c - 当我运行程序时没有任何反应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21934221/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com