У меня есть несколько файлов и общепринятое решение внешнего в заголовке, а затем объявление в.
Код: Выделить всё
#pragma once
#define METHODS_H
#include
#ifdef METHODS_H
#include
#include
#include
#include
// declaring global variables
namespace global_variables
{
int number_of_employees;
}
#endif
< /code>
одно использование переменной в wscreate.cpp < /p>
// for loop to make sure amount of employees is integer
int count = 0;
int triggered = 0;
while (true){
cout printing;
cout printing;
cout printing;
cout printing;
cout printing;
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/67100467/lnk1169-one-or-more-multiply-defined-symbols-found-i-know-this-could-be-conside[/url]
Мобильная версия