Ich hab neulich ein neues Buch bekommen und das heißt: C++ für Spieleprogrammierer.
Ich bin noch am Anfang und hab schon mein erses Programm geschrieben.
Eine art Taschenrechner.
Das ist mein Quelcode:
------------------------------------------------------------------------
// C++ für Programmierer
// Versin 1.0
// Taschenrechner
//
#include <iostream>
using namespace std;
// Hauptprogramm
//
int main ()
{
// Variablen
//
int Zahl1, Zahl2, Zahl3;
int Gesamtsumme;
// Eingabe der Werte
cout << "Ersten Zahl: ";
cin >> Zahl1;
cout << "Zweiten Zahl: ";
cin >> Zahl2;
// Berechnung und Ausgabe der Gesamtsumme
Gesamtsumme = Zahl1 + Zahl2;
cout << "Ergebnis der + Aufgabe : " << Gesamtsumme << endl;
// Berechnung und Ausgabe der Gesamtsumme
Gesamtsumme = Zahl1 - Zahl2;
cout << "Ergebnis der - Aufgabe : " << Gesamtsumme << endl;
// Berechnung und Ausgabe der Gesamtsumme
Gesamtsumme = Zahl1 * Zahl2;
cout << "Ergebnis der * Aufgabe : " << Gesamtsumme << endl;
// Berechnung und Ausgabe der Gesamtsumme
Gesamtsumme = Zahl1 / Zahl2;
cout << "Ergebnis der : Aufgabe : " << Gesamtsumme << endl;
cout << "Um das Programm zu Beenden druecke eine Billibige Taste und Bestaetige sie\n";
cout << "Programmiert von Markus Friesen \n\a";
// Eingabe der Werte
cout << "Ende: ";
cin >> Zahl3;
return 0;
}
------------------------------------------------------------------------
Und das ist der Download Link:
http://rapidshare.com/files/13407661...ion_2.rar.html
Ich bin noch am Anfang und hab schon mein erses Programm geschrieben.
Eine art Taschenrechner.
Das ist mein Quelcode:
------------------------------------------------------------------------
// C++ für Programmierer
// Versin 1.0
// Taschenrechner
//
#include <iostream>
using namespace std;
// Hauptprogramm
//
int main ()
{
// Variablen
//
int Zahl1, Zahl2, Zahl3;
int Gesamtsumme;
// Eingabe der Werte
cout << "Ersten Zahl: ";
cin >> Zahl1;
cout << "Zweiten Zahl: ";
cin >> Zahl2;
// Berechnung und Ausgabe der Gesamtsumme
Gesamtsumme = Zahl1 + Zahl2;
cout << "Ergebnis der + Aufgabe : " << Gesamtsumme << endl;
// Berechnung und Ausgabe der Gesamtsumme
Gesamtsumme = Zahl1 - Zahl2;
cout << "Ergebnis der - Aufgabe : " << Gesamtsumme << endl;
// Berechnung und Ausgabe der Gesamtsumme
Gesamtsumme = Zahl1 * Zahl2;
cout << "Ergebnis der * Aufgabe : " << Gesamtsumme << endl;
// Berechnung und Ausgabe der Gesamtsumme
Gesamtsumme = Zahl1 / Zahl2;
cout << "Ergebnis der : Aufgabe : " << Gesamtsumme << endl;
cout << "Um das Programm zu Beenden druecke eine Billibige Taste und Bestaetige sie\n";
cout << "Programmiert von Markus Friesen \n\a";
// Eingabe der Werte
cout << "Ende: ";
cin >> Zahl3;
return 0;
}
------------------------------------------------------------------------
Und das ist der Download Link:
http://rapidshare.com/files/13407661...ion_2.rar.html
Comment