Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // http://pastebin.com/u/TheWhiteFang
- #include <iostream>
- #include <string>
- using namespace std;
- int main(){
- string name;
- cout << "Please enter a string:\n";
- getline(cin, name);
- cout << endl;
- cout <<"Your entered string is: "<< name <<" and the length is "<< name.length() << endl <<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement