Hi guys.My project's goal is to read some numbers from input file,then create a grid.
my input file is:
2 3
3 4 5
1 2 4
first line is rows and colums.second and third line the grid location values.
Please help me.??
My code is
Global POD types are given value zero. They are initialised and the code is deterministic.
You're defining an empty vector using it as if has space.
Why are those variables global anyway? If it was local, you wouldn't have these problems as rows/cols would have the required values before grid was declared.