Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

string copy in cpp

//use '=' to copy string
string s1={"Hello"};
string s2;
s2=s1;	//now s2 will have a copu s1
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #string #copy #cpp
ADD COMMENT
Topic
Name
8+3 =