#include #define MAX_N_STRING 100 #define MAX_STRLEN 100 #define STR_FOR_INPUT "%s:100" #define END_MARKER "END" #define MY_OWN_STRINGS_H 1 #if MY_OWN_STRINGS_H int strcmp(const char *s1, const char *s2) { int i=0; while ((s1[i]!='\0') && (s2[i]!='\0') && (s1[i]==s2[i]) && (i #endif void main() { printf("Hello, World!\nUse single-bit encoding, please!\n"); printf("Enter strings content. Maximum strings length is %d characters.\n",MAX_STRLEN); printf("Input will stopped after %d strings input or the \"%s\" phrase instead of string content.\n",MAX_N_STRING,END_MARKER); int i=0; char s[MAX_N_STRING][MAX_STRLEN]; do { printf("s[%d]: ",i); scanf(STR_FOR_INPUT,s[i]); if (!strcmp(s[i],END_MARKER)) break; i++; } while (istrlen(s[j])) { char t[MAX_STRLEN]; strcpy(t,s[k]); strcpy(s[k],s[j]); strcpy(s[j],t); } } } printf("Strings array after sorting:\n"); for (int j=0; j