By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,345 Members | 1,706 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,345 IT Pros & Developers. It's quick & easy.

One Simple True Help .....

P: 27
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 example - JAVA IS THE BEST LANGUAGE.
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 stree as i cant get this thing .
please release me from my worries. any good person .
Nov 17 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.