no image
Seminar (11) Algorithm : Algorithm Analysis
https://product.kyobobook.co.kr/detail/S000007672724 Data Structures and Algorithm Analysis in C++ | Weiss - 교보문고Data Structures and Algorithm Analysis in C++ | Advanced Data Structures/Algorithms C++ Data Structures and Algorithm Analysis in C++, 3/e Mark Allen Weiss, Florida International University ISBN : 0-321-37531-9 Mark Allen Weiss teaches readers to reduce tiproduct.kyobobook.co.kr알고리즘 공..
2025.04.27
no image
Seminar (10) C++ : Value Category
Value CategoryC++ 에서는 타입 뿐아니라 값에도 종류가 있습니다.어떤 값인가? 이게 무슨 말인지 살펴보겠습니다. 위처럼 값 표현식에는 총 5개로 나눠진 값들이 있습니다. glvalueA glvalue is an expression whose evaluation determines the identity of an object, bit-field, or function.어떤 객체, bit-field, 함수의 정체성을 결정하는 표현식이다. prvalueA prvalue is an expression whose evaluation initializes an object or bit-field, or computes the value of the operand of an operator, as s..
2025.04.27
no image
Seminar (9) C++ : Dependent Type / Auto
Dependent TypeDependent Type(의존 타입) 이란 뭘까요?template void func() { T::t* p;}class A{ const static int t;};class B{ using t = int;};이런 코드가 있다고 해보면, A에서는 t 곱하기 p.B에서는 t 포인터 p를 뜻하게 됩니다.이처럼 템플릿 인자에 의존하는 타입을 Dependent type(의존 타입)이라고 합니다. 그런데 이런 dependent type이 이렇게 보일 때는 쉬워 보일 수도 있지만 다음 코드를 보면 좀 더 구체적으로 체감이 됩니다.template struct INT { static const int num = N;};template struct add{ typedef INT result;};t..
2025.04.24
no image
Seminar (8) C++ : Templates
Templates A template is a blueprint for generating code with different types. It allows you to write generic, reusable components. Click here to view the example code .▼ 더보기Let's write a simple add function for integers and doubles.But instead of repeating the code for each type:int addInt(int a, int b) { return a + b;}double addDouble(double a, double b) { return a + b;} We can use a te..
2025.04.13
no image
Seminar (7) C++ : Standard I/O Library
Standard Input and Output in C++ ios_baseThe most fundamental base class.It provides formatting control (like flags, precision, width) and basic stream management. iosDerived from ios_base, it connects to the actual stream buffer (streambuf).Both istream and ostream inherit from this class. istreamProvides input functionality. For example, std::cin is of type istream. ostreamProvides output fun..
2025.04.13
no image
Seminar (6) C++ : Operator Overloading
Operator OverloadingOperator overloading allows you to redefine the way operators work for user-defined types (classes). This enables natural and intuitive syntax for your custom types, like adding two objects using the + operator.Vector a(1, 2);Vector b(3, 4);Vector c = a + b; // operator+ is overloaded Basic Syntax To overload an operator in a class:class Vector {public: int x, y; Vecto..
2025.04.01
no image
Seminar (5) C++ : Namespace, Reference, OOP
Namespace In C++, a namespace is a declarative region that provides a scope to the identifiers inside it. C++ uses namespaces to organize code and prevent naming collisions, especially when integrating third-party libraries or large codebases. Click here to view the example code .▼ 더보기#include namespace mytools { void greet() { std::cout Using directives and declarations Click here t..
2025.04.01
Seminar (4) C
보호되어 있는 글입니다.
2025.03.31
no image
Seminar (3) C
Void Type "Does not return a value", "No type"Used to store the address in void pointers Used when no return value is neededReferencetype :🔗 https://en.cppreference.com/w/c/language/type Main FunctionThe function called at program startup is named main. Reference main function : 🔗 https://en.cppreference.com/w/c/language/main_function  Dynamic Memory Allocation Dynamic memory allocation is the..
2025.03.16