정규 강의 (7) 썸네일형 리스트형 프로그램(program), 프로세스(process), 스레드(thread) Program an executable file containing the set of instructions written to perform a specific job stored on a disk 하드디스크에 저장된 실행 파일 Process an executing instance of a program resides on the primary memory several processes related to same program at the same time 프로그램을 실행한 인스턴스, 메모리에서 동작함 Thread the smallest executable unit of a process C++ Copy Assignment Operator Copy constructor vs. Assignment Operator - A copy constructor creates. anew object. - An assignment operator assigns a value to an existing object. - An assignment operator is always called on an object that has already been constructed. Assignment Operator - The C++ operator automatically assigns one if not by a programmer Custom Assignment Operator - is a public member function of the class. -.. C++ Copy Constructor source: https://www.tutorialspoint.com/cplusplus/cpp_copy_constructor.htm Definition The copy constructor is a constructor which creates an object by initializing it with an object of the same class, which has been created previously. The copy cconstructor is uesed to initialize one object from another of the same type copy an object to pass it as an argument to a functino copy an object to retu.. C++ Class Destructors Source: https://www.geeksforgeeks.org/destructors-c/ Definition Destructor is a member function which destructs or deletes an object. Description A destructor function is called automatically when: the function ends the program ends a block ends (if the object is on the heap) a delete operator is called A destructor should never be called directly. C++ Pointers resource: https://www.w3schools.com/cpp/cpp_pointers.asp C++ Pointers C++ Pointers Creating Pointers You learned from the previous chapter, that we can get the memory address of a variable by using the & operator: Example string food = "Pizza"; // A food variable of type string cout 1.2 C++ Classes sources: Object-Oriented Data Structures in C++, University of Illinois at Urbana-Champaign, Wade Fagen-Ulmshneider C++ Header File (.h) a header file defines the interface to the class, which includes: Declaration of all member variables Declaration of all member functions Not implementation(how those work) of above Looks like #pragma once class Cube { public: double getVolume(); double getSurf.. Transport layer & Socket Multiplexing and Demultiplexing Multiplexing at sender: sending data from its own multiple applications through networkDemultiplexing at receiver: delivering data packets to their appropriate receivers among its own multiple applicationsTheses are provided by the transport layer.Port number different applications are assigned different port numberstransport layer segments have fields for source.. 이전 1 다음