摘要: 问题提出 现在有一种hpp文件,它是直接实现代码,其实它就是个头文件,但是在头文件里编写实现代码会重定义错误 test.h #pragma once #include <iostream> void hello() { printf("hello"); } test.cpp #include "te 阅读全文
posted @ 2022-07-18 12:11 乘舟凉 阅读(664) 评论(0) 推荐(0) 编辑