Hi, i'm fairly new to programming and have to create a program where the user inputs a word, it is then outputted in the 11th column of a 20 column grid of random '1' '0' '.' and ' '. I got it to work with string inputs of one word, but when you enter multiple words, it just does the first word. Any ideas how to fix this?
#include <iostream>
#include <string>
using namespace std;
int main()
{
string a = "10. ";
string b;
int t = 0;
cin >> b;
srand(time(NULL));
char x;
for (int z = 0; z < b.length(); z++)
{
for (int i = 0; i < 19; i++)