24.12.31 (화)
·
내배캠/TIL
std::vector 컨테이너를 class로 약식 구현해보았다.https://dong-grae.tistory.com/85 std::vector를 class로 구현#include #include using namespace std;template class SimpleVector{private: T* Data; int CurrentSize; int CurrentCapacity;public: // 기본 생성자 SimpleVector() : CurrentSize(0), CurrentCapacity(10) { Data = new T[10](); } // 매개변수를 받는 생dong-grae.tistory.com 문자열에 있는 영문으로 표기된 숫자를 실제 숫자로 바꾸는 문제를 풀었는데, 다른 사람의 풀이를 보다..