LNK1169 Ein oder mehrere multiplizierte Symbole gefunden. Ich weiß, dass dies als Duplikat angesehen werden könnte, aber

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: LNK1169 Ein oder mehrere multiplizierte Symbole gefunden. Ich weiß, dass dies als Duplikat angesehen werden könnte, aber

by Anonymous » 03 Jun 2025, 19:27

Ich habe eine Header -Datei, die mein Lehrer benötigt. Ich verwende eine globale Variable, damit ich den Wert von einer Funktion in eine andere verschieben kann. Nachdem das Problem nachgeschlagen wurde, empfahl jemand, einen Namespace zu verwenden. Das hat nicht funktioniert. Darüber hinaus habe ich einige Wachen hinzugefügt, wie jemand anderes empfohlen, aber das hat auch nicht geholfen.

Code: Select all

#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>
Eine Verwendung der Variablen in 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

Top