I want this program by using only iostream.h & conio.h
Program to compute Length of string Enterd by user in C++ By Class
Collapse
X
-
Tags: None
-
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. -
-
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
-
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 aboutsizeofand 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
Comment