int main() { int i; struct Distribution diagram [Maxnum]; for (i = 0; i < Maxnum; i++) { diagram[i].alphabetical = i + 'a'; diagram[i].occurance = 0; } create_letter_distribution_diagram(diagram); /* Output */ for (i = 0; i < Maxnum; i++) printf("%c:%d\n", diagram[i].alphabetical, diagram[i].occurance); return 0; }
int main () { char EntryText[4000]; scanf("%[^\n]s",EntryText); create_letter_distribution_diagram(EntryText); return 0; }
int main(){ char txt[100]; scanf("%[^\n]s",txt); create_letter_distribution_diagram(txt); return 0; }
int main(){ char izrechenie[1000]; scanf("%[^\n]s", izrechenie); create_letter_distribution_diagram(izrechenie); return 0; }
int main() { char sentence[500]; scanf("%[^\n]s",sentence); create_letter_distribution_diagram(sentence); return 0; }
int main() { int count_printer; char sentence[stringlen]; scanf("%[^\n]s",sentence); int sentence_lenght = strlen(sentence); if(create_letter_distribution_diagram(sentence,sentence_lenght)) { sort_structure(); } for(count_printer = 0; count_printer < 26; count_printer++) { printf("%c: %d\n", alphabet[count_printer].letter_id, alphabet[count_printer].times_in_sentence); } return 0; }
int main() { create_letter_distribution_diagram(); return 0; }
int main(void) { create_letter_distribution_diagram(); }