I'm still trying to figure out how to loop through a string so that every time I loop through it the list will be updated with the most recent values at the top.
This is what I have, but it is not working:
All I get is some garbage that displays.Code://Declarations char startunit; char endunit; char filename; //string assignments strcpy(startunit[i],"mm"); strcpy(endunit[i],"mm"); strcpy(filename[i],"mm.txt"); //display printf("%s", startunit[i]); printf("%s", endunit[i]); printf("%s", filename[i]);
I only have 10.5 hrs till this is due. I really need some help on this. Once I figure this problem out it will be easy for me to complete my project.