Skip to content

Instantly share code, notes, and snippets.

@michaels123
Created September 21, 2018 13:30
Show Gist options
  • Save michaels123/e4be355142a75f35a8e93b134e32455b to your computer and use it in GitHub Desktop.
Save michaels123/e4be355142a75f35a8e93b134e32455b to your computer and use it in GitHub Desktop.
#include <iostream>
#include <string>
int main ()
{
std::string Produkte[3][2] = {{"Messer", "6.49"},
{"Teller", "7.99"}, {"Tasse", "2.29"}};
std::cout << "Produkt: " << Produkte[0][0];
std::cout << " Preis: " << Produkte[0][1] << std::endl;
std::cout << "Produkt: " << Produkte[1][0];
std::cout << " Preis: " << Produkte[1][1] << std::endl;
std::cout << "Produkt: " << Produkte[2][0];
std::cout << " Preis: " << Produkte[2][1] << std::endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment