目前,我正在尝试使用java编程语言制作一个计算器。但是,我需要知道java是否使用BODMAS,以便我知道是否制作一个实现BODMAS的算法或继续制作计算器。java使用BODMAS吗?
我目前正在学习C.我试图创建一个makefile,但由于某种原因,它不起作用.当我在控制台中输入"make"时,控制台中会显示以下警告:
makefile.c:1:1: warning: type specifier missing, defaults to 'int'
[-Wimplicit-int]
CFLAGS=-Wall -g
^~~~~~
makefile.c:1:9: error: use of undeclared identifier 'Wall'
CFLAGS=-Wall -g
^
makefile.c:1:15: error: use of undeclared identifier 'g'
CFLAGS=-Wall -g
^
makefile.c:4:13: error: expected ';' after top level declarator
rm -f ex1
Run Code Online (Sandbox Code Playgroud)
这是makefile的代码:
CFLAGS=-Wall -g
clean:
rm -f ex1
Run Code Online (Sandbox Code Playgroud)
代码应该编译ex1.c文件.为什么我的makefile不起作用?