Program to compute Length of string Enterd by user in C++ By Class

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • qaisali828
    New Member
    • Sep 2014
    • 2

    Program to compute Length of string Enterd by user in C++ By Class

    I want this program by using only iostream.h & conio.h
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    Just enter your data using cin into a car array. Then use the char array to make string object. Then use the size() method on the string object to get the length.

    Comment

    • qaisali828
      New Member
      • Sep 2014
      • 2

      #3
      What is size() method?

      Comment

      • weaknessforcats
        Recognized Expert Expert
        • Mar 2007
        • 9214

        #4
        It is time to start reading. I can help with specific questions but general ones like this one require a lot of explanation. Get a textbook.

        Comment

        • Frinavale
          Recognized Expert Expert
          • Oct 2006
          • 9749

          #5
          Perhaps the MSDN library may help to get you started.


          It contains documentation for things like the iostream header file.

          Also, you may be interested in the documentation about C++ Operators, Precedence and Associativity because it will tell you about sizeof and much more. If you follow the hyperlinks to learn more about a topic it will even provide you with code examples (like this the example for the sizeof Operator).

          Comment

          Working...