Code: Alles auswählen
#include <iostream>
#include <string>
using namespace std;
// HAUPTPROGRAMM
int main()
{
// Vereinbaren
const int Max = 8;
string Feld[Max][Max];
// Spielfeld belegen
for (int x = Max - 1; x >= 0; x--)
{
for (int y = 0; y < Max; y++)
{
static_cast<char>(y+65) + to_string(x+1);
cout << Feld[x][y] << " ";
}
cout << "\n";
}
return 0;
}
Aber ich sehe nach Aufruf des Programms einfach... nichts.
Unter VisualStudio ist auch nichts zu sehen.
Im Buch schaut das so aus: Das Codebespiel aus dem Buch: