vector 썸네일형 리스트형 [C++] (example) private& public/ 계좌만들기/ 분자& 분모 #include #include #include using namespace std; class Point { public: double x; double y; }; int main() { Point pt1, pt2; pt1.x = 8.5; pt1.y = 0.0; pt2.x = -4; pt2.y = 2.5; cout 더보기 [C++] Vector Matrix Matrix 2D vector of doubles 1) void print(const vector& m) { for (unsigned row = 0; row < m.size(); row++) { for (unsigned col = 0; col < m[row].size(); col++) cout 더보기 [C++] (example) Vector 예시 1번 #include #include using namespace std; int main() { double sum = 0.0; const int Number_of_entries = 5; vector numbers(Number_of_entries); cout 더보기 [C++] Vector / A vector in C++ is an object that manages a block of memory a collection of values A vector has a name, and we may access the values it contains via their position within the block of memory managed by the vector A vector stores a sequence of values, and the values must all be of the same type A collection of values all of the same type is said to be homogeneous. Step.1: Header including #includ.. 더보기 이전 1 다음