gpt4 book ai didi

c - POLINK :error: Unresolved external symbol. 佩莱斯 C

转载 作者:太空宇宙 更新时间:2023-11-04 03:53:03 25 4
gpt4 key购买 nike

我是编程新手。我正在使用 Pelles C ide 编译 C,它昨天工作正常,但现在出现此错误。

enter image description here

这是项目的代码:

#include <stdio.h>

int main(void)
{
double operand1;
double result;
char operator;
double operand2;

printf("This is a calculator");
printf("Type a simple expression...");
scanf("%lf %s %lf", &operand1, &operator, &operand2);

if(operator == '+')
{
result = operand1 + operand2;
}
else if (operator == '-')
{
result = operand1 + operand2;
}
else if (operator == '*')
{
result = operand1 * operand2;
}
else if (operator == '/')
{
result = operand1 / operand2;
}
else
{
printf("Wrong input. Exiting.");
return 1;
}

printf("The answer is: %lf ", result);

return 0;

这个错误的原因是什么?

还有这个,我不记得以前有过这个 enter image description here

最佳答案

我从未使用过那个特定的 IDE,但看起来您的项目类型无意中从 console 更改为 Windows application

关于c - POLINK :error: Unresolved external symbol. 佩莱斯 C,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19296670/

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