Working in C++, trying to create multiple strings from multiple blocks of text
For example, we're given the following from a file called text.txt, but on a larger scale:
ADSAFG SFGGRD GFFRHB
KHUJGF HYFFHU GYTEXU
TUKNGY GGRDGU DDRGGC
I want to make (for this example) three strings from each block of text. If I have 3 lines per block and 6 characters per line, I want to end up with an 16-character array or vector, preferably array.
Help me Reddit. You're my only hope.
Edit: there should be 3 blocks of 3 lines with 6 characters per line, not 3 lives with broken strings. On my phone, so formatting is weak.
Submitted February 28, 2017 at 06:04PM by CaptainPunisher
via reddit http://ift.tt/2lw4wFT