#include <iostream.h>
#include <iomanip.h>
#include <math.h>

int main()
{
    int i;
    char merkel[23]= "Angie Merkel"; //Buchstabenfeld []entweder leer oder buchstabenanzahl +1
    cout << merkel << endl;
    cout << merkel[0] << endl; // Ausgabe einer bestimmten feldposition, begin immer bei 0
    cout << "Der neue Boss ist ";
    for(i=0;i<=5; i++) cout << merkel[i]; cout << "\n"; 
    
    // Zahlenfelder
    
    int zahl[]= {1, 3, 5, 7}; // eindimensionales zahlenfeld
    cout << "Das dritte Element ist die Zahl " << zahl[2] << endl;
    zahl[2] = zahl[1]+zahl[3];
    cout << "Addition von 3 + 7 ergibt " << zahl[2] << endl;
    
    //zweidimensionales zahlenfeld feldname[zeilenzahl][spaltenzahl]
    int wert[3][4] ={1,2,3,4,
                   5,6,7,8,
                    9,10,11,12};
               
    cout << "Blahfasel Zahl " << wert[1][2] << endl;

cout << "\nProgrammende...";
cin.get (); cin.get();
return(0);    
    }

/*

*/
