sorry. il loop e':

for (char ch = 0, i = 0; ch != '\n', cin.get(ch), ++i)
cd.titolo[i] = ch;

bye