C++
x
23
1
2
3
4
using std::ifstream;
5
using std::cout;
6
using std::endl;
7
8
double lowl[3][6];
9
ifstream test1("hi.txt");
10
11
int main()
12
{
13
14
for (int i = 0; i<2; i++){
15
for (int j = 0; j<6; j++){
16
17
test1 >> lowl[i][j];
18
cout << lowl[i][j] << " ";
19
}
20
cout << endl;
21
22
}
23
}
$ g++ prog.cc -Wall -Wextra -std=c++11 -pedantic
Start
1 2 3 4 5 6 7 8 9 2 1 2
0
Finish