Skip to content

Instantly share code, notes, and snippets.

Created November 21, 2020 10:40
What would you like to do?
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