I
Immortal Nephi
I put number of characters together into string like this below.
#include <string>
#include <iostream>
using namespace std;
int main()
{
string s1 = "The cat is cute."
cout << s1 << endl;
// how to use loop to print each character individual between space?
return 0;
}
Output
The cat is cute.
T h e c a t i s c u t e.
Thanks...
#include <string>
#include <iostream>
using namespace std;
int main()
{
string s1 = "The cat is cute."
cout << s1 << endl;
// how to use loop to print each character individual between space?
return 0;
}
Output
The cat is cute.
T h e c a t i s c u t e.
Thanks...