fixing the readme

This commit is contained in:
Jidong Xiao
2024-02-06 00:38:45 -05:00
parent 6659fcdf9b
commit db103435f5
2 changed files with 25 additions and 4 deletions

View File

@@ -124,8 +124,9 @@ v[0] = 13.1; v[2] = 3.14;
Vec<double> u(v);
u[2] = 6.5;
u[3] = -4.8;
for (unsigned int i=0; i<4; ++i)
cout << u[i] << " " << v[i] << endl;
for (unsigned int i=0; i<4; ++i){
std::cout << u[i] << " " << v[i] << std::endl;
}
```
Explain what happens by drawing a picture
of the memory of both u and v.