User Profile
Collapse
-
thats it, i don't know how to do it the sorting part, thats y i need your help... -
...Code:#include<string.h> main (void){ char name[20][20]; int i,x; char hold; clrscr(); for(i=0;i<=4;i++){ printf("Enter the Names:\n",i); scanf("%s",&name[i]); } //sorting// for(i=0;i<=4;i++){ for(x=i;x<=4;x++){ name[i]="abc"; hold[x]="afs";Leave a comment:
-
Array of strings sorted
here's my running program,...Code:#include<string.h> main (void){ char name[20][20]; int i; clrscr(); for(i=0;i<=4;i++){ printf("Enter the Names:\n",i); scanf("%s",&name[i]); } //sorting// for(i=0;i<=4;i++){ printf("%s\n",name[i]); } getch(); return 0; } -
hi can anyone help me about my proj??
i'm 4th year h.s student...
my instructor hav me a special proj. for my failing grades...
here is my proj.
::Array of names at least 5 names, sorted alphabetically: :
i'll for the response...Leave a comment:
No activity results to display
Show More
Leave a comment: