목록C++ (45)
printf("ho_tari\n");
#include #include "boundArray.h" int main() { BoundArray arr1; //BoundArray arr1(0,10); [0,10) BoundArray arr2(100); // BoundArray arr2(0,100); [0,100) BoundArray arr3(1,11); // index[1,11) for (int i = arr3.lower(); i
#include #include "safeArray.h" #include "array.h" int main() { int nums1[] = {1,2,3,4,5}; SafeArray arr1(nums1,5); for (int i = 0; i
#include #include "swap.h" int main() { int i = 100, j = 200; swap(i, j); std::cout
#include #include "queue.h" int main() { Queues1; s1.push(100); s1.push(200); s1.push(300); std::cout
#include #include "stack.h" int main() { Stacks1; s1.push(100); s1.push(200); s1.push(300); std::cout
#include #include "array.h" #include "complex.h" int main() { int nums1[] = {1,2,3,4,5}; Arrayarr1(nums1, 5); // template (원하는 형태의 데이터타입 생성) for (int i = 0; i
#include #include "boundArray.h" int main() { BoundArray arr1; //BoundArray arr1(0,10); [0,10) BoundArray arr2(100); // BoundArray arr2(0,100); [0,100) BoundArray arr3(1,11); // index[1,11) for (int i = arr2.lower(); i