ok i declared string word2; in c++ borland vrs 6 and i wanted to add records or varibles , whatever you call them so i wrote it like this string word2; now it runs the program but what i want to be displayed does not display the amount of characters i am reading is no more then 5 so 10 should work fine. i need to know why its not displaying heres a peice of code that might help you solve my problem.
for(a = 1;a <= filecount; a = a + 1)//filecount counts how many
times it loops in scan.
cout << word2[a] <<" ";
now this should display word2 but it doesn't plz help