Why am I getting a bad line: 1 when I run the program? The regex row expression regex row {R"(^[\w ]+( \d+)( \d+)( \d+)$)"}; appears to be correct. There is one tab to the first \d+ and two tabs to the second and third \d+. I do not know why it does not work.
Here is my table.txt file. There are tabs between words and numbers. Antal Drenge is Danish for boys, and Antal Piger is Danish for girls. Elever Ialt is the row total of boys and girls.
1. An interesting for statement. Where do you find the syntax for this type of for statement?
2. What is the purpose of line 19, d = {};? It appears that it is not needed.
Now that the program reads the rows, how do you get line 62 in my program to execute?
It clears the contents of d (sets integers to zero, strings to empty strings etc.)
Here, the empty braced-init-list{} denotes a value-initialised anonymous temporary object of type data.
> how do you get line 62 in my program to execute?
normb > You are not capturing the column KLASS so line 62 will never evaluate to true.