C++/CLI Konsolenanwendung spackt...
hallo leute :p
ich hab n bissel angefangen mit C++/CLI
(.Net Laufzeitumgebung)
Also das Buch das ich Lese
("Jetzt lerne ich Visual C++ 2008")
hat mir die ersten 2 Kapitel nur Theorie an die Birne geschmissen... jetzt da ich ein bisschen syntax gelernt habe hab ich versucht nen simplen Rechner zu schreiben.
hier die ganze source:
Code:
#include stdafx.cpp
using namespace system;
int main()
{
double nummer1;
double nummer2;
double ende;
string ^name;
string ^input1;
string ^input2;
Console::WriteLine("Bitte Namen eingeben:");
name = Console::WrtieLine();
Console::WriteLine("Hallo " + name " bitte geben sie die erste Zahl ein:");
input1 = Console::ReadLine();
nummer1 = Convert::ToInt64(input1);
Console::WriteLine(name + ", Ihre erste zahl lautet "+ nummer1);
Console::WriteLine(name + ", bitte geben sie die zweite zahl ein:");
input2 = Console::ReadLine();
nummer2 = Convert::ToInt64(input2);
ende = nummer1 + nummer2;
Console::WriteLine(+name ", Ihre ersta zahl lautete "+ nummer1 " und ihre zweite zahl lautet " + nummer2);
Console::WriteLine("Daraus ergeibt sich:" + ende);
Console::ReadLine();
}
aber ich bekomme die Fehlermeldung
Code:
Fehler 1 error C2871: 'system': Es ist kein Namespace mit diesem Namen vorhanden c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 4
Fehler 2 error C2065: 'string': nichtdeklarierter Bezeichner c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 11
Fehler 3 error C2065: 'name': nichtdeklarierter Bezeichner c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 11
Fehler 4 error C2065: 'string': nichtdeklarierter Bezeichner c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 12
Fehler 5 error C2065: 'input1': nichtdeklarierter Bezeichner c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 12
Fehler 6 error C2065: 'string': nichtdeklarierter Bezeichner c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 13
Fehler 7 error C2065: 'input2': nichtdeklarierter Bezeichner c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 13
Fehler 8 error C2653: 'Console': Keine Klasse oder Namespace c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 15
Fehler 9 error C3861: "WriteLine": Bezeichner wurde nicht gefunden. c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 15
Fehler 10 error C2065: 'name': nichtdeklarierter Bezeichner c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 16
Fehler 11 error C2653: 'Console': Keine Klasse oder Namespace c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 16
Fehler 12 error C3861: "WrtieLine": Bezeichner wurde nicht gefunden. c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 16
Fehler 13 error C2653: 'Console': Keine Klasse oder Namespace c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 18
Fehler 14 error C2065: 'name': nichtdeklarierter Bezeichner c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 18
Fehler 15 error C2143: Syntaxfehler: Es fehlt ')' vor 'Zeichenfolge' c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 18
Fehler 16 error C2059: Syntaxfehler: ')' c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 18
Fehler 17 error C2065: 'input1': nichtdeklarierter Bezeichner c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 20
Fehler 18 error C2653: 'Console': Keine Klasse oder Namespace c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 20
Fehler 19 error C3861: "WriteLine": Bezeichner wurde nicht gefunden. c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 18
Fehler 20 error C3861: "ReadLine": Bezeichner wurde nicht gefunden. c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 20
Fehler 21 error C2653: 'Convert': Keine Klasse oder Namespace c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 21
Fehler 22 error C2065: 'input1': nichtdeklarierter Bezeichner c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 21
Fehler 23 error C3861: "ToInt64": Bezeichner wurde nicht gefunden. c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 21
Fehler 24 error C2653: 'Console': Keine Klasse oder Namespace c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 23
Fehler 25 error C2065: 'name': nichtdeklarierter Bezeichner c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 23
Fehler 26 error C3861: "WriteLine": Bezeichner wurde nicht gefunden. c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 23
Fehler 27 error C2653: 'Console': Keine Klasse oder Namespace c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 24
Fehler 28 error C2065: 'name': nichtdeklarierter Bezeichner c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 24
Fehler 29 error C3861: "WriteLine": Bezeichner wurde nicht gefunden. c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 24
Fehler 30 error C2065: 'input2': nichtdeklarierter Bezeichner c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 26
Fehler 31 error C2653: 'Console': Keine Klasse oder Namespace c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 26
Fehler 32 error C3861: "ReadLine": Bezeichner wurde nicht gefunden. c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 26
Fehler 33 error C2653: 'Convert': Keine Klasse oder Namespace c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 27
Fehler 34 error C2065: 'input2': nichtdeklarierter Bezeichner c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 27
Fehler 35 error C3861: "ToInt64": Bezeichner wurde nicht gefunden. c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 27
Fehler 36 error C2653: 'Console': Keine Klasse oder Namespace c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 31
Fehler 37 error C2065: 'name': nichtdeklarierter Bezeichner c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 31
Fehler 38 error C2143: Syntaxfehler: Es fehlt ')' vor 'Zeichenfolge' c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 31
Fehler 39 error C2059: Syntaxfehler: ')' c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 31
Fehler 40 error C2653: 'Console': Keine Klasse oder Namespace c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 32
Fehler 41 error C3861: "WriteLine": Bezeichner wurde nicht gefunden. c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 31
Fehler 42 error C3861: "WriteLine": Bezeichner wurde nicht gefunden. c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 32
Fehler 43 error C2653: 'Console': Keine Klasse oder Namespace c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 33
Fehler 44 error C3861: "ReadLine": Bezeichner wurde nicht gefunden. c:\Dokumente und Einstellungen\abuse\Eigene Dateien\Visual Studio 2008\Projects\b\b.cpp 33
was mache ich da falsch?
mfg euer Ty