Skip to content

Strings

richagithub edited this page Dec 30, 2017 · 4 revisions

Strings in c++

include<string>
int main()
{
string a,b,c;
cin>> a>>b>>c;
return 0;
}

Similar to string in java
Like:
Comparision => a[i]==b[i] , a==b ;
CharAt => a[i];
Conacate => a+"kkk" , a+'k';

REFERENCE: http://ysonggit.github.io/coding/2014/12/16/split-a-string-using-c.html

Clone this wiki locally