Click here to Skip to main content
15,891,529 members
Home / Discussions / C#
   

C#

 
AnswerRe: C#.net access Pin
PIEBALDconsult28-Aug-11 4:34
mvePIEBALDconsult28-Aug-11 4:34 
GeneralRe: C#.net access Pin
dcof28-Aug-11 8:53
dcof28-Aug-11 8:53 
GeneralRe: C#.net access Pin
PIEBALDconsult28-Aug-11 12:01
mvePIEBALDconsult28-Aug-11 12:01 
GeneralRe: C#.net access Pin
dcof28-Aug-11 13:12
dcof28-Aug-11 13:12 
AnswerRe: C#.net access Pin
jschell28-Aug-11 7:59
jschell28-Aug-11 7:59 
GeneralRe: C#.net access Pin
dcof28-Aug-11 8:55
dcof28-Aug-11 8:55 
QuestionA programe interact with user Pin
Had12327-Aug-11 5:42
Had12327-Aug-11 5:42 
AnswerRe: A programe interact with user Pin
MicroVirus27-Aug-11 6:08
MicroVirus27-Aug-11 6:08 
You're not going to be able to (realistically speaking) make a true talking program. Much work is still being done of that field to make real talking computers.

However, you can have a go at something that looks like it. Start, for instance, by creating a 'database' of Question/Response pairs, where if the user asks Question, you read the corresponding Response from the database and output it.
Then you can work on string matching, such that minor changes in the typed question still match to a predefined question in your database, e.g. "What are you doing?" and "What you doing?" should probably be considered the same question.
You can then continue by defining keywords, that when seen in a question trigger a certain response. For instance, in your example the user says "I'm tired". If that specific question isn't in your database, but the keyword 'tired' is, then you can have a guess from seeing this keyword that the user is tired, and you say something like "Have a rest". Of course, the user could have asked "Are you tired?", in which case "Have a rest" wasn't the right response.
You could add a check for if the user ended with a question mark (?), in which case you can assume that whatever typed was a question.

At any rate, I'd say have at it, try experimenting, combining things. Come up with ways to understand the users intentions as well as possible. It's quite a fun thing to try, and also quite challenging.
AnswerRe: A programe interact with user Pin
Eddy Vluggen27-Aug-11 9:48
professionalEddy Vluggen27-Aug-11 9:48 
GeneralRe: A programe interact with user Pin
Ravi Bhavnani27-Aug-11 11:25
professionalRavi Bhavnani27-Aug-11 11:25 
GeneralRe: A programe interact with user Pin
OriginalGriff27-Aug-11 22:35
mveOriginalGriff27-Aug-11 22:35 
GeneralRe: A programe interact with user Pin
Had12328-Aug-11 2:54
Had12328-Aug-11 2:54 
AnswerRe: A programe interact with user Pin
Ravi Bhavnani28-Aug-11 5:11
professionalRavi Bhavnani28-Aug-11 5:11 
GeneralRe: A programe interact with user Pin
Manfred Rudolf Bihy28-Aug-11 3:10
professionalManfred Rudolf Bihy28-Aug-11 3:10 
AnswerRe: A programe interact with user Pin
Abhinav S28-Aug-11 2:46
Abhinav S28-Aug-11 2:46 
Questionwhat is delegates, threading functions etc Pin
dinesh samaria27-Aug-11 5:38
dinesh samaria27-Aug-11 5:38 
AnswerRe: what is delegates, threading functions etc Pin
Hari Om Prakash Sharma27-Aug-11 8:29
Hari Om Prakash Sharma27-Aug-11 8:29 
AnswerRe: what is delegates, threading functions etc Pin
Abhinav S27-Aug-11 21:03
Abhinav S27-Aug-11 21:03 
GeneralNetwork Game Word Building Project Pin
teju.aries27-Aug-11 3:53
teju.aries27-Aug-11 3:53 
AnswerRe: Network Game Word Building Project Pin
DaveAuld27-Aug-11 4:48
professionalDaveAuld27-Aug-11 4:48 
GeneralRe: Network Game Word Building Project Pin
Ravi Bhavnani27-Aug-11 11:27
professionalRavi Bhavnani27-Aug-11 11:27 
Questionc# Pin
rama_sangoju27-Aug-11 1:35
rama_sangoju27-Aug-11 1:35 
AnswerRe: c# Pin
Shameel27-Aug-11 4:10
professionalShameel27-Aug-11 4:10 
AnswerRe: c# Pin
rasoolfazeli27-Aug-11 4:47
rasoolfazeli27-Aug-11 4:47 
GeneralRe: c# Pin
Shameel27-Aug-11 4:55
professionalShameel27-Aug-11 4:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.