hi all, i need to accept a string input, and convert the ouput into a string that consists of only the alphabets typed before in lowercase, and in ascending order. for example, user types in 4ASf4a8!@#jt, and the output is supposed to be aafjst. i dont know how to convert the alphabets into lowercase......can anyone help? thanks!!!
Code:void sort() { int count; char line[20]; printf("Enter a string (1-20 characters):"); fflush(stdin); gets(line); for (count=0;count<strlen(line);count++) { if (int(line[count])>65) { //i come here = i'm a letter!! } } }



LinkBack URL
About LinkBacks


