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
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment