Академический Документы
Профессиональный Документы
Культура Документы
Лабораторная Nr.5
6 вариант
#include <stdio.h>
#include <string.h>
int main() {
char m[200][200];
char s[200];
int count = 0;
strcpy(m[count], token);
count++;
}
printf("Original words: \n");
printf("%s\n", m[i]);
char tempOne[200];
strcpy(tempOne, m[i]);
char tempTwo[200];
strcpy(tempTwo, m[j]);
strupr(tempOne);
strupr(tempTwo);
// swap words, if first one is bigger than other one (bigger means it is placed
further in alphabet)
strcpy(s,m[i]);
strcpy(m[i],m[j]);
strcpy(m[j],s);
}
}
printf("%s\n", m[i]);
return 0;