Thursday, July 30, 2009

How can I seperate the charecters in string in C++?

Semi Colon ';'

How can I seperate the charecters in string in C++?
#include %26lt;iostream.h%26gt;


#include %26lt;string%26gt;


using namespace std;





int main()


{


string str = "ARvind";


int len = str.length();


for (int i=0; i%26lt;len;i++)


{


cout%26lt;%26lt;str[i]%26lt;%26lt;"\n";


}


return 0;


}

snow of june

No comments:

Post a Comment