Stilllegung des Forums
Das Forum wurde am 05.06.2023 nach über 20 Jahren stillgelegt (weitere Informationen und ein kleiner Rückblick).
Registrierungen, Anmeldungen und Postings sind nicht mehr möglich. Öffentliche Inhalte sind weiterhin zugänglich.
Das Team von spieleprogrammierer.de bedankt sich bei der Community für die vielen schönen Jahre.
Wenn du eine deutschsprachige Spieleentwickler-Community suchst, schau doch mal im Discord und auf ZFX vorbei!
Werbeanzeige
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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
#include <iostream> using namespace std; int main () { // Teil 1 Int n = 10; int m = n; cout << "\n Variable m hat den Wert "<< m << endl; // Ausgabe 10 richtig/falsch ? // Teil 2 char a = 'A'; char b = a; cout << "\n Variable b hat den Wert "<< b << endl; // Ausgabe a richtig/falsch ? // Teil 3 double z = 0815; double zz = z; cout << "\n Variable zz hat den Wert " << zz << endl; // Ausgabe 0815 oder 815 richtig/falsch ? // Teil 4 long lo = 47.11; long lolo = lo; cout << "\n Variable lolo hat den Wert " << lolo << endl; // Ausgabe 47.11 richtig/falsch ? // Teil 5 float f = 1,99; float ff = f; cout << "\n Variable ff hat den Wert " << ff << endl; // Ausgabe 1,99 richtig/falsch ? // Teil 6 char arr1[] = "Hallo"; // char arr2[] = arr1; // cout << "\n Variable arr2 hat den Wert " << arr2 << endl; // Ausgabe Hallo richtig/falsch ? // Teil 7 char ch = 68; char chch = ch; cout << "\n Variable chch hat den Wert "<< chch << endl; // Ausgabe 68 richtig/falsch ? // Teil 8 char ach[] = "Testfrage"; char nch = ach[2]; cout << "\n Variable ach[2] hat den Wert "<< ach[2] << endl; // Ausgabe e richtig/falsch ? // Teil 9 int x = 7; int *px = &x; cout << "\n Variable px hat den Wert "<< px << endl; // Ausgabe 7 richtig/falsch ? // Teil 10 char text[] = "Hallo"; int anzahl = sizeof(text); cout << "\n Variable anzahl hat den Wert "<< anzahl << endl; // Ausgabe 5 richtig/falsch ? cout << "\n\nProgrammende\n\n"; } |
Alter Hase
Anonymous
unregistriert
Anonymous
unregistriert
Werbeanzeige