CLin 和 IDEA创建文件时自动添加作者和时间信息 + 多个.cpp文件在CLion下运行问题

  1. CLin 和 IDEA创建文件时自动添加作者和时间信息

file -> setting -> Editor -> File and Code Templates -> 点击Includes下的“C File Header”或“File Header”
修改成:

/***************************************************************************

功能:
Created by helloHKTK on ${DATE}
***************************************************************************/

  1. 多个.cpp文件在CLion下运行问题
    修改当前工程下的CMakeLists.txt 中的 add_executable(Test001 Test001.cpp)将Test001.cpp替换成想要运行的.cpp文件即可运行!

猜你喜欢

转载自www.cnblogs.com/helloHKTK/p/10969973.html