Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. Aspireing c++ programmer (doesn't know Jack atm) Question

Aspireing c++ programmer (doesn't know Jack atm) Question

Scheduled Pinned Locked Moved Managed C++/CLI
helptutorialquestionloungelearning
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Caden
    wrote on last edited by
    #1

    :~ 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; }

    P 1 Reply Last reply
    0
    • C Caden

      :~ 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; }

      P Offline
      P Offline
      Paul Selormey
      wrote on last edited by
      #2

      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.

      C 1 Reply Last reply
      0
      • P Paul Selormey

        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.

        C Offline
        C Offline
        Caden
        wrote on last edited by
        #3

        OOPS! Go figure I'd mess up:~ ... sorry!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups