📄 makefile
字号:
# All object files that must be linked into final executableOBJ= emp_exceptions.o employee.o hourly.o salaried.o main.o# Rule for building executable from object files# $@ is shorthand for the target of the ruleexception_demo: ${OBJ} c++ -o $@ ${OBJ}# Rule for compiling individual sources files into object files# $< is shorthand for the first prerequisite${OBJ}: %.o: %.cpp c++ -c $<# Rule to clean up all output filesclean: rm -f exception_demo ${OBJ}# DO NOT DELETEemp_exceptions.o: emp_exceptions.hemployee.o: employee.hhourly.o: employee.h hourly.h emp_exceptions.hmain.o: employee.h hourly.h salaried.h emp_exceptions.hsalaried.o: employee.h salaried.h emp_exceptions.h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -