Click here to Skip to main content
15,921,840 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSyncronisation problem Pin
VCProgrammer22-May-12 20:13
VCProgrammer22-May-12 20:13 
AnswerRe: Syncronisation problem Pin
Malli_S22-May-12 20:45
Malli_S22-May-12 20:45 
AnswerRe: Syncronisation problem Pin
Erudite_Eric22-May-12 21:52
Erudite_Eric22-May-12 21:52 
AnswerRe: Syncronisation problem Pin
Richard MacCutchan22-May-12 22:33
mveRichard MacCutchan22-May-12 22:33 
AnswerRe: Syncronisation problem Pin
ThatsAlok23-May-12 3:55
ThatsAlok23-May-12 3:55 
Questionunable to write into the shared memory Pin
manoharbalu22-May-12 4:02
manoharbalu22-May-12 4:02 
AnswerRe: unable to write into the shared memory Pin
Richard Andrew x6422-May-12 4:08
professionalRichard Andrew x6422-May-12 4:08 
GeneralRe: unable to write into the shared memory Pin
manoharbalu22-May-12 4:14
manoharbalu22-May-12 4:14 
GeneralRe: unable to write into the shared memory Pin
Richard Andrew x6422-May-12 4:22
professionalRichard Andrew x6422-May-12 4:22 
GeneralRe: unable to write into the shared memory Pin
manoharbalu22-May-12 4:33
manoharbalu22-May-12 4:33 
AnswerRe: unable to write into the shared memory Pin
Richard Andrew x6422-May-12 4:36
professionalRichard Andrew x6422-May-12 4:36 
GeneralRe: unable to write into the shared memory Pin
manoharbalu22-May-12 4:50
manoharbalu22-May-12 4:50 
AnswerRe: unable to write into the shared memory Pin
Richard Andrew x6422-May-12 4:58
professionalRichard Andrew x6422-May-12 4:58 
GeneralRe: unable to write into the shared memory Pin
manoharbalu22-May-12 18:41
manoharbalu22-May-12 18:41 
QuestionChange Specific Text Color - RichEdit Control Pin
AmbiguousName22-May-12 2:13
AmbiguousName22-May-12 2:13 
AnswerRe: Change Specific Text Color - RichEdit Control Pin
Richard Andrew x6422-May-12 2:24
professionalRichard Andrew x6422-May-12 2:24 
GeneralRe: Change Specific Text Color - RichEdit Control Pin
AmbiguousName22-May-12 2:44
AmbiguousName22-May-12 2:44 
GeneralRe: Change Specific Text Color - RichEdit Control Pin
Richard Andrew x6422-May-12 2:49
professionalRichard Andrew x6422-May-12 2:49 
QuestionRe: Change Specific Text Color - RichEdit Control Pin
AmbiguousName22-May-12 2:56
AmbiguousName22-May-12 2:56 
AnswerRe: Change Specific Text Color - RichEdit Control Pin
Richard Andrew x6422-May-12 3:05
professionalRichard Andrew x6422-May-12 3:05 
AnswerRe: Change Specific Text Color - RichEdit Control Pin
SaahilPriya22-May-12 19:08
SaahilPriya22-May-12 19:08 
AnswerRe: Change Specific Text Color - RichEdit Control Pin
Richard MacCutchan22-May-12 2:25
mveRichard MacCutchan22-May-12 2:25 
QuestionMFC help: map integration in GUI Pin
jawadali47722-May-12 1:02
jawadali47722-May-12 1:02 
AnswerRe: MFC help: map integration in GUI Pin
Richard MacCutchan22-May-12 1:28
mveRichard MacCutchan22-May-12 1:28 
QuestionBasic Help Pin
Dasttann77721-May-12 18:03
Dasttann77721-May-12 18:03 
I am trying to write a virtual chat system, in which you can ask the computer any question you want, and then it will give out the correct answer. My only problem is getting the code to loop back to the start, thus allowing the user to input another question, continuously getting the answer, until the user specifies to stop.
C++
#include <iostream>
#include <string>
#include <stdlib.h>
#include <windows.h>
#include <conio.h>
#include <tchar.h>
using namespace std;
int Australia();

int main()
{
    cout << "Welcome to Virtual Chat, ask any question you want.\n";
    int Keep = 1;
    string Input;
    while (Keep == 1)
    {
        cin >> Input;
        if (Input == "What is your name?" || "what is your name?" || "What is your name");
        {
            cout << "I am a computer, I do not have a Name";
            break;
        }
        continue;
    }
    char f;
    cin >> f;
    return 0;
}

Thankyou for the help.

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.