Hi,
i have a problem with my written code,
it´s a very imple one but it doesnt work....
if you can answer in german pls.
Here is it:
|
C-/C++-Quelltext
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// Rechnen mit der Console
//
#include <iostream>
using namespace std;
// Hauptprogramm
//
int main ()
{
// Variablen
//
int Eisdmg,Feuerdmg,Blitzdmg,Erddmg;
int Hydropi;
int Eismulti,Feuermulti,Blitzmulti,Erdmulti;
// Variablen initialisieren
//
Eisdmg = Feuerdmg = Blitzdmg = Erddmg = 20;
Hydropi = 100;
Eismulti = Feuermulti = Blitzmulti = Erdmulti = 3;
cout << "Glumanda greif Hyrdopi mit Feuerball an!!!" << endl;
cout << "\nHydropis Leben sinkt, da Glumanda vom Typ" << endl;
Hydropi = Hydropi - Feuerdmg;
cout << "Fueuer ist nicht nur auf: " << Hydropi << "," << endl;
Hydropi = 100;
Hydropi = Hydropi - Feuerdmg * Feuermulti;
cout << "sondern auf: " << Hydropi << endl;
return 0;
}
|
This is the protocol:
1>------ Build started: Project: Kapitel 1, Configuration: Debug Win32 ------
1>Build started 01.09.2011 17:52:49.
1>InitializeBuildStatus:
1> Touching "Debug\Kapitel 1.unsuccessfulbuild".
1>ClCompile:
1> All outputs are up-to-date.
1>ManifestResourceCompile:
1> All outputs are up-to-date.
1>Textausgabe - Konsole.obj : error LNK2005: _main already defined in Rechnen mit der Console.obj
1>C:\Documents and Settings\Fronto\My Documents\Visual Studio 2010\Projects\C++ Programmieren für Anfänger\Debug\Kapitel 1.exe : fatal error LNK1169: one or more multiply defined symbols found
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.87
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========