Skip to content

Instantly share code, notes, and snippets.

@amankharwal

amankharwal/strings.cpp Secret

Created Nov 21, 2020
Embed
What would you like to do?
#include<iostream>
#include<string>
using namespace std;
int main(){
string small, large;
small = "I am short";
large = "I am a very long string";
cout<<"The small string is "<<small.length()<<" characters."<<endl;
cout<<"The long string is "<<large.length()<<" characters."<<endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.