C++ Problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • listerkram
    New Member
    • Oct 2008
    • 2

    C++ Problem

    Can anyone give me a c++ source code with an output of:

    output:

    INPUT A SENTENCE:

    THE SENTENCE YOU ENTERED IS: _______________ _____
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Bookmark this site; it's a good reference site with good examples.

    kind regards,

    Jos

    Comment

    • listerkram
      New Member
      • Oct 2008
      • 2

      #3
      thanks man...
      but its hard to look for what i want to know....

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #4
        Originally posted by listerkram
        thanks man...
        but its hard to look for what i want to know....
        You can read, can't you? We are not going to spoonfeed you example code.
        Three clicks away from that link is a perfect example.

        kind regards,

        Jos

        Comment

        • whodgson
          Contributor
          • Jan 2007
          • 542

          #5
          look up 'gets' and 'puts'
          eg
          char str[81];
          gets(str);//type a line of input which is stored in the str[ ] array
          puts(str);//prints the line of input (just typed) from the str[ ] array

          Comment

          Working...