我似乎无法解决这个问题。我对另一个程序有相同的设置,它是一个堆栈、推送/弹出,它工作得很好。我第一次收到函数错误中使用的未声明值。任何帮助,将不胜感激。
头文件
#include <stdio.h>
#include <string.h>
int money();
void amortization();
typedef struct{
int principle;
int rate;
int payments;
} loan_t;
功能码
int money(loan_t)
{
printf("Please input the amount borrowed:");
scanf("%d", &principle);
printf("\nPlease input the Annual Interest Rate:");
scanf("%d", &rate);
printf("\nPlease input the number of monthly payments:\n");
scanf("%d", &payments);
return (principle,rate,payments);
}
谢谢你!