cout Formatierungen
-
Wie kann ich mithilfe von cout Text formatiert ausgeben?
So in der Art:
printf("%i",Ganzzahl);geht das überhaupt?
Danke.
-

cout<<Ganzzahl;
-
ich glaube er meint die <iomanip> bibliothek
-
Also.
Ich meine so:int GZ = 3; printf("Die Zahl hat der Wert %i",GZ);Und auf der Konsole erscheint:
"Die Zahl hat den Wert 3".
Danke
-
Formator schrieb:
Also.
Ich meine so:int GZ = 3; printf("Die Zahl hat der Wert %i",GZ);Und auf der Konsole erscheint:
"Die Zahl hat den Wert 3".
Danke#include <iostream> // ... int GZ = 3; std::cout << "Die Zahl hat den Wert " << GZ;Whats the matter?

-
suchst du jetzt spezielle formatierungsmöglichkeiten oder einfach wie man etwas mit cout ausgibt .-.
-
wie es ausschaut nur die normale ausgabe
