Re-definitions of functions while including files in C++ (error LNK2005)
问题 I'm new to C++ and I have a basic doubt. I'm creating a french verb conjugating application. I have two files, a Conjugator.cpp file and an ErVerbs.cpp file. I want to keep the bulk of my functions in the ErVerbs source file and use the conjugator file to use these functions. Here are a few code snippets: Conjugator.cpp #include <iostream> #include <string> #include "Variables.h" #include "ErVerbs.cpp" #include "IrVerbs.cpp" #include "ReVerbs.cpp" using namespace std; void check() { if (verb