12345678910111213141516
#include <iostream> using namespace std; int main(){ char a[9], s[11]="20 - - "; cout << "Enter date mm/dd/yy: "; cin.getline(a, 9); s[2]=a[6]; s[3]=a[7]; s[5]=a[0]; s[6]=a[1]; s[8]=a[3]; s[9]=a[4]; cout << "Swedish date: " << s << endl; return(0); }
cin.ignore();
cin.getline(a,9)