Prefix trees are quite useful for that.
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
struct letter {
int letter;
struct letter *leaf;
Type: Posts; User: Barney McGrew
Prefix trees are quite useful for that.
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
struct letter {
int letter;
struct letter *leaf;
I was referring to the overall design of his program, particularly how he was storing sequences of characters into arrays then operating on them (instead of operating on them one-by-one), rather than...
You're making it way too complicated.
#include <ctype.h>
#include <stdio.h>
int main(void)
{
int inspace = 1, c;