2 DAYS TO SUBMIT AND I COULD NOT GET MY HEAD AROUND TO DO IT , I HAVE BEEN STUDING VERY HARD FOR ALL SUBJECTS INCLUDING ANSI C BUT ITS HARD . PLEASE SAVE ME . GOD BLESS U.
Hello friends i have to do the following thing and i am still learning ANSI C .
Can anyone tell me how to go about it . please.
thanks
---------------------------------------
write a program to provide predictive text input. As a user types words of a sentence the application should suggest (attempt to predict) the word to be typed.
The user should be given the option of selecting the predicted word input or continuing to input the word.
A typical output is shown below. Bold represents user inputs. Note after each prompt from the application a new line of text is output.
i.e
“T” the-1, there-2, that-3, select or continue! “1”
“The c” cat-1 coat-2, select or continue! “o”
“The co” cook-1 clock-2, cot-3, select or continue! “s”
etc
Guide :
Create a file to hold a dictionary of words. (use notepad to create the file.)
I must create and use a number of functions.
I must use pointers when comparing strings, and cant use the library function strcmp.
I am free to make sensible assumptions/modifications to the specification in order to improve my program.
** the program is meant for only showing one line for e - JAVA IS THE BEST.
so how should my txt file look like for it ? also how will i use it in the code.
PLEASE PLEASE help me .... TAKE IT AS CHARITY WORK .
coz i am new to C. there are many great C ppl out there who can wirte the code easily .
i am now suffering from insomnia and stress as i cant get this thing .
please release me from my worries by helping. any good person .
--------------------------------------------------------------------------------