当前位置:网站首页>C language LNK2019 unresolved external symbols_ Main error

C language LNK2019 unresolved external symbols_ Main error

2022-06-25 14:46:00 m0_ fifty-nine million nine hundred and forty-nine thousand fou

LNK2019 Unresolved external symbols

#include <stdio.h>
#include <math.h>

void mian()
{
	double x, s;
	printf("input number:\n");
	scanf("%lf", &x);
	s = sin(x);
	printf("sin of %lf is %lf\n", x, s);
}

Upper code error :  LNK2019     Unresolved external symbols _main, function "int __cdecl invoke_main(void)" ([email protected]@YAHXZ) The symbol is quoted in     

reason :main Misspelling of words .

#include <stdio.h>
#include <math.h>

void main()
{
	double x, s;
	printf("input number:\n");
	scanf("%lf", &x);
	s = sin(x);
	printf("sin of %lf is %lf\n", x, s);
}

原网站

版权声明
本文为[m0_ fifty-nine million nine hundred and forty-nine thousand fou]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202200521145273.html