Your code prints the string for every white space found. If you have a string with several words and want to print each word in a separate line, you could just print a '\n' instead of every ' '.
1 2 3
for (int a = 0; a <= len_s; a++)
if(s[a] == sep) cout << '\n';
else cout << s[a];
Another problem is that cin >> s will only read one word, so there will be no ' 's. use getline.
If you want to store each string separately, you could do this