What's wrong with this array? The error is that it can't conver char to char in function main for each lname variable.
Code tags fixed (they were off by a '/') by kermi3Code:#include <fstream.h> #include <conio.h> #include <stdlib.h> void main() { char lname[5]; lname[0]="T'pnon"; lname[1]="Nem'on"; lname[2]="K'nou"; lname[3]="Clau"; lname[4]="Tnon"; cout << lname[1]; getch(); }