473,382 Members | 1,373 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Honest help

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.
Nov 7 '06 #1
6 1601
anyone can help me with this ? please.
Nov 8 '06 #2
sicarie
4,677 Expert Mod 4TB
anyone can help me with this ? please.
Is this supposed to be updated in realtime? That would be rather difficult, I don't think I understand how the users will be shown the predictive options.

Will they put the first letter of the word in, and then press enter to see them, or is it supposed to come up automatically? Are they only limited to the words you include in the notepad, or are they supposed to be able to add more?
Nov 8 '06 #3
No its only 4 the line i have in my text file . for example


Java is the best . ------- is the line .


is users start .

J --- they have a option--> 1 -just , 2 -joke , 3 - jam , type the corresponding number or continue . so they type 'a'

Ja .
now they type
jav --> 1--java , type corresponding number or continue ..... so they type 1 .

now we have
Java . and so on it goes .
now u got my point ?
what should be my text file look like for the line.... Java is the best .
Nov 9 '06 #4
I can totally help you out with this, though I need more details. What's the criteria for a word to be predicted Are any words that start with the entered characters listed? Or are there certain qualifications for a word to be suggested?

Am I understanding you right, or do I have it all wrong? Do you understand me?

This is a perfect place to implement a trie! I've never tried one before so this is exciting.
Nov 9 '06 #5
Hi there, mate the program says that when a user types a letter then he should be given an option of some words .
check my example .
in the txt file there can be as many words as u want to be but for the above problem only one sentence will do .
check my example above mate
My head gonna burst now ! i really need some good help buddy .
Nov 9 '06 #6
Please Someone Help Me Here ???
Nov 14 '06 #7

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

Similar topics

21
by: Dave | last post by:
After following Microsofts admonition to reformat my system before doing a final compilation of my app I got many warnings/errors upon compiling an rtf file created in word. I used the Help...
7
by: Doug Rosser | last post by:
I'm writing a fairly complicated test framework and keeping configuration data inside ini files that are parsed at runtime by the ConfigParser module. For example, there would be a section...
6
by: wukexin | last post by:
Help me, good men. I find mang books that introduce bit "mang header files",they talk too bit,in fact it is my too fool, I don't learn it, I have do a test program, but I have no correct doing...
3
by: Colin J. Williams | last post by:
Python advertises some basic service: C:\Python24>python Python 2.4.1 (#65, Mar 30 2005, 09:13:57) on win32 Type "help", "copyright", "credits" or "license" for more information. >>> With...
7
by: Corepaul | last post by:
Missing Help Files When I enter "recordset" as the keyword and search the Visual Basic Help index, I get many topics of interest in the resulting list. But there isn't any information available...
5
by: Steve | last post by:
I have written a help file (chm) for a DLL and referenced it using Help.ShowHelp My expectation is that a developer using my DLL would be able to access this help file during his development time...
8
by: Mark | last post by:
I have loaded Visual Studio .net on my home computer and my laptop, but my home computer has an abbreviated help screen not 2% of the help on my laptop. All the settings look the same on both...
10
by: JonathanOrlev | last post by:
Hello everybody, I wrote this comment in another message of mine, but decided to post it again as a standalone message. I think that Microsoft's Office 2003 help system is horrible, probably...
1
by: trunxnirvana007 | last post by:
'UPGRADE_WARNING: Array has a new behavior. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="9B7D5ADD-D8FE-4819-A36C-6DEDAF088CC7"' 'UPGRADE_WARNING: Couldn't resolve...
2
by: cephal0n | last post by:
Hi All! First of I apologize for my previews post needing help on union select and not providing so more explanation, but thank you very much for your opinion and sugestion. I have thought about my...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.