Aspireing c++ programmer (doesn't know Jack atm) Question
-
:~ BTW in advance I apologize for this super lengthy post! Any help would be GREATLY apreciated. I am aware that my codeing is a bit messed up but thats ok.. for now.. the main thing is that I figure out how to put all this to use properly while understanding why it works. Ok everybody I hope I am not stepping out of line in posting this question on this forum. I'm a new member of the code project and I am new to programing in general, have started programming in c++ but my knowledge is and will be fairly limmited for a while.. I am trying to put to use what I have learned in a simple program but have come across a problem. Mind you it could just be that my brain is completely fried from digesting 300 pages of the book I am studying to learn c++ in 3 days (OUCH!) the program is as follows In brackets () I have put my questions hope this doesn't confuse anybody.. dont worry I havent use () in the program itself yet.
#include #include #include int main(int nNumberOfArgs, char* pzargs[]) // //Attempting to make a code to allow Jeeney to respond in small chat //
{//Enter in a question or comment to which Jeeney may respond to. Int response; cout << "Enter a question or comment to which jeeney may respond:'; cin >> response; //Calculate statement or question input to result a //coresponding statement or question to output
:confused:(The problem I have is here.. I need to create an "if" statement example "if" input responce is "Hello Jeeney" "then" Jeeney would respond useing another sentence or question such as Ex: "Hello, how are you today?" I'm not entirely sure how to do this as I seem to be learning ONLY useing numbers. I somewhat understand HOW it should work but am not very sure of the codeing used.) :confused:( int factor; this part is confuseing as well. I am working with character strings rather then integers so wouldn't this be more apropriately put as "char factor" ? and that doesn't seem to make any sence either. ( factor = )return 0; }
-
:~ BTW in advance I apologize for this super lengthy post! Any help would be GREATLY apreciated. I am aware that my codeing is a bit messed up but thats ok.. for now.. the main thing is that I figure out how to put all this to use properly while understanding why it works. Ok everybody I hope I am not stepping out of line in posting this question on this forum. I'm a new member of the code project and I am new to programing in general, have started programming in c++ but my knowledge is and will be fairly limmited for a while.. I am trying to put to use what I have learned in a simple program but have come across a problem. Mind you it could just be that my brain is completely fried from digesting 300 pages of the book I am studying to learn c++ in 3 days (OUCH!) the program is as follows In brackets () I have put my questions hope this doesn't confuse anybody.. dont worry I havent use () in the program itself yet.
#include #include #include int main(int nNumberOfArgs, char* pzargs[]) // //Attempting to make a code to allow Jeeney to respond in small chat //
{//Enter in a question or comment to which Jeeney may respond to. Int response; cout << "Enter a question or comment to which jeeney may respond:'; cin >> response; //Calculate statement or question input to result a //coresponding statement or question to output
:confused:(The problem I have is here.. I need to create an "if" statement example "if" input responce is "Hello Jeeney" "then" Jeeney would respond useing another sentence or question such as Ex: "Hello, how are you today?" I'm not entirely sure how to do this as I seem to be learning ONLY useing numbers. I somewhat understand HOW it should work but am not very sure of the codeing used.) :confused:( int factor; this part is confuseing as well. I am working with character strings rather then integers so wouldn't this be more apropriately put as "char factor" ? and that doesn't seem to make any sence either. ( factor = )return 0; }
Hello Caden, To get a better response you will need to property phase your question. Anyway, this forum is for MC++, try using the Visual C++ forum. Best regards, Paul. Jesus Christ is LOVE! Please tell somebody.
-
Hello Caden, To get a better response you will need to property phase your question. Anyway, this forum is for MC++, try using the Visual C++ forum. Best regards, Paul. Jesus Christ is LOVE! Please tell somebody.