Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
string temp = chararray;
// or
string two;
two = chararray;
string temp(chararray, chararray + 50);
string two;
two.assign(chararray, chararray + 50);
Ahh, c'mon, you can figure it out!Jerrie85 said:how would you assign it to the string from the nth position to the ith position, instead of from 0 to n?
so for a char[1000], i wanna assign to string from position 3 - 10?
char chararray[1000];
// ... load chararray
string temp(chararray + 3, chararray + 10);
string two;
two.assign(chararray + 3, chararray + 10);