Next: Steuerelemente in C++
Up: Objekte, Klassen, Variable, Funktionen,
Previous: Schema für einfache I/O
#include <iostream.h> // includes muessen sein
int main()
{
cout << "Good Lord" << endl;
}
#include <iostream.h>
int main()
{
int z;
cout << "Gib eine Zahl ein:" << endl;
cin >> z;
cout << "Du hast " << z << " eingegeben."
<< endl;
}
| © 1997 Gottfried Rudorfer, C++-AG, Lehrveranstaltungen, Abteilung für Angewandte Informatik, Wirtschaftsuniversität Wien, 3/19/1998 |