Read in characters and place in multidimensional array

I am trying to read in a word and then place it into a 4 by 4 array, excluding any repeating letters, and then place the remaining letters in the alphabet in after in order.
I've tried like a bazillion things, and I don't know what to do, and I'm getting really frustrated.


ifstream infile;
infile.open("input.txt");
infile >> noskipws;
infile >> n;

while (n != ' ')
{for (row = 0; row < 5; row++)
{
for (col = 0; col < 5; col++)

}



}

for (row = 0; row < 5; row++)
{
for (col = 0; col < 5; col++)
cout << key[row][col];
}
Last edited on
would you mind posting some code we can look at?
Topic archived. No new replies allowed.