Skip to content

Commit 6a266c6

Browse files
Merge pull request #3 from Chau-Nguyen-Developer/vector5
Able to print out correct result. Still need to take care of the form…
2 parents a548c23 + 5ec56dc commit 6a266c6

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

programming4.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,14 @@ int main()
8282
std::cout << vector4[i-1] << std::endl;
8383
}
8484

85-
85+
std::vector<double> vector5;
86+
std::cout << "This is vector 5" << std::endl;
87+
// for(size_t i = 1; vector4.size(); ++i)
88+
// {
89+
// vector5.push_back((vector4[i] - vector4[i -1]) / (vector1[i + 2] - vector1[i -1]));
90+
// std::cout << vector5[i-1] << std::endl;
91+
// }
92+
std::cout << (vector4[1] - vector4[0]);
8693
return 0;
8794

8895
}

programming4.exe

0 Bytes
Binary file not shown.

programming4.obj

248 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)