first intialize one string such as str
take two variable of integer type such as i,j
take one temporary variable of char type such as temp
for(i=0;str[i]!='\0';i++) /*loop will be continue untill the it not found the null charater from str string*/
if(str[j]>str[i]) /*chack whether the next charater is smaller than the cuurent charater */
for(i=0;str[i]!='\0';i++) /*print the string */
i agree with death_oclock and what i type here is actually just more detailed explanation of his suggestion
problem is that if you use standard input (keyboard), you will have to make dynamic array, or to predetermine number of maximum words.
bubble sort is pretty good option since it's simple and easy to use, and you will input form keyboard which means there wont be too many entries.
if you know how to use more complex structures as dynamic arrays, then all you need to do is make one such array. dynamic array works in way that expands with each entry and you will know the length of your array. strcmp or strcmpl (same as previous but capital letters are considered the same as lower case letters) are function that compares two strings. strcmp (string1, string2) evaluates (equals) to 0 if two string are identical, evaluates less than 0 if first string is "lower" (alphabetically comes before second one), and evaluates more than 0 if first string is "higher" (goes after the second).
everything said here expects that you know how to work bubble sort, strings, and dynamic array thing is just optional. you can say that there will be no more than 100 words and you will spare yourself from dynamic arrays.
Your indentation could use some more noticeable spaces. #include<conio.h> is not a standard header file. clrscr(); and getch(); are not portable C standard functions. void main() should always return an int, except when there's not host operating system. printf("enter the name:"); you ask for a name, but expect six to be entered via a loop. scanf("%s",&a[i]); a is a pointer already. What if the input is more than seven which is the limit of char a? scanf() should always be limited on reading and checked at return for failure. strcmp(a[i],a[j+1]); strcmp(a, a[5+1]); What's in a? Oh, there's not an a. Same it is applicable for strcpy()
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls
If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then
For Each subCtrl As Control In ctrl.Controls
If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then
If subCtrl.GetType Is ...