별의 공부 블로그 🧑🏻‍💻

🗒️ 2017/11 (143)

728x90
  1. 2017.11.08 [header][other] functional

    *[header][other] functional Function objectsFunction objects are objects specifically designed to be used with a syntax similar to that of functions. In C++, this is achieved by defining member function operator() in their class, like for example: 1 2 3 4 struct myclass { int operator()(int a) {return a;} } myobject; int x = myobject (0); // function-like syntax with object myobject They are typ..

  2. 2017.11.08 [header][other] exception

    *[header][other] exception Standard exceptionsThis header defines the base class for all exceptions thrown by the elements of the standard library: exception, along with several types and utilities to assist handling exceptions: Types:exceptionStandard exception class (class )bad_exceptionException thrown by unexpected handler (class )nested_exception Nested exception class (class )exception_ptr..

  3. 2017.11.08 [header][other] complex

    *[header][other] complex Complex numbers libraryThe complex library implements the complex class to contain complex numbers in cartesian form and several functions and overloads to operate with them: ClassescomplexComplex number class (class template ) FunctionsComplex values: realReal part of complex (function template )imagImaginary part of complex (function template )absAbsolute value of comp..

  4. 2017.11.08 [header][other] codecvt (C++11)

    *[header][other] codecvt (C++11) Unicode conversion facetsStandard facets to convert between UTF character encodings. Notice that the codecvt facet is not declared in this header, but in . Enumcodecvt_modeCodecvt mode (enum ) Classescodecvt_utf8Convert UTF-8 (class template )codecvt_utf16Convert UTF-16 (class template )codecvt_utf8_utf16Convert between UTF-8 and UTF-16 (class template ) 내용 출처 : ..

  5. 2017.11.08 [header][other] chrono (C++11)

    *[header][other] chrono (C++11) Time librarychrono is the name of a header, but also of a sub-namespace: All the elements in this header (except for the common_type specializations) are not defined directly under the std namespace (like most of the standard library) but under the std::chrono namespace. The elements in this header deal with time. This is done mainly by means of three concepts: Du..

  6. 2017.11.08 [header][other] bitset

    *[header][other] bitset Bitset headerHeader that defines the bitset class: ClassesbitsetBitset (class template ) 내용 출처 : http://www.cplusplus.com/reference/bitset/

  7. 2017.11.08 [header][other] algorithm

    *[header][other] algorithm Standard Template Library: AlgorithmsThe header defines a collection of functions especially designed to be used on ranges of elements. A range is any sequence of objects that can be accessed through iterators or pointers, such as an array or an instance of some of the STL containers. Notice though, that algorithms operate through iterators directly on the values, not ..

  8. 2017.11.08 [header][container] unordered_set (C++11)

    *[header][container] unordered_set (C++11) Unordered set headerHeader that defines the unordered_set and unordered_multiset container classes: Classesunordered_setUnordered Set (class template )unordered_multisetUnordered Multiset (class template ) FunctionsbeginIterator to beginning (function template )endIterator to end (function template ) 내용 출처 : http://www.cplusplus.com/reference/unordered_..

  9. 2017.11.08 [header][container] unordered_map (C++11)

    *[header][container] unordered_map (C++11) Unordered map headerHeader that defines the unordered_map and unordered_multimap container classes: Classesunordered_mapUnordered Map (class template )unordered_multimapUnordered Multimap (class template ) FunctionsbeginIterator to beginning (function template )endIterator to end (function template ) 내용 출처 : http://www.cplusplus.com/reference/unordered_..

  10. 2017.11.08 [header][container] forward_list (C++11)

    *[header][container] forward_list (C++11) Forward listHeader that defines the forward_list container class: Classesforward_listForward list (class template ) FunctionsbeginIterator to beginning (function template )endIterator to end (function template ) 내용 출처 : http://www.cplusplus.com/reference/forward_list/

  11. 2017.11.08 [header][container] list

    *[header][container] list List headerHeader that defines the list container class: ClasseslistList (class template ) FunctionsbeginIterator to beginning (function template )endIterator to end (function template ) 내용 출처 : http://www.cplusplus.com/reference/list/

  12. 2017.11.08 [header][container] deque

    *[header][container] deque Deque headerHeader that defines the deque container class: ClassesdequeDouble ended queue (class template ) FunctionsbeginIterator to beginning (function template )endIterator to end (function template ) 내용 출처 : http://www.cplusplus.com/reference/deque/

  13. 2017.11.08 [header][container] stack

    *[header][container] stack Stack headerHeader that defines the stack container class: ClassesstackLIFO stack (class template ) 내용 출처 : http://www.cplusplus.com/reference/stack/

  14. 2017.11.08 [header][container] set

    *[header][container] set Set headerHeader that defines the set and multiset container classes: ClassessetSet (class template )multisetMultiple-key set (class template ) FunctionsbeginIterator to beginning (function template )endIterator to end (function template ) 내용 출처 : http://www.cplusplus.com/reference/set/

  15. 2017.11.08 [header][container] queue

    *[header][container] queue Queue headerHeader that defines the queue and priority_queue container adaptor classes: ClassesqueueFIFO queue (class template )priority_queuePriority queue (class template ) 내용 출처 : http://www.cplusplus.com/reference/queue/

  16. 2017.11.08 [header][container] map

    *[header][container] map Map headerHeader that defines the map and multimap container classes: ClassesmapMap (class template )multimapMultiple-key map (class template ) FunctionsbeginIterator to beginning (function template )endIterator to end (function template ) 내용 출처 : http://www.cplusplus.com/reference/map/

  17. 2017.11.08 [header][container] array (C++11)

    *[header][container] array (C++11) Array headerHeader that defines the fixed-size array container class: ClassesarrayArray class (class template ) FunctionsbeginIterator to beginning (function template )endIterator to end (function template ) 내용 출처 : http://www.cplusplus.com/reference/array/

  18. 2017.11.08 [header][container] vector

    *[header][container] vector std::vectortemplate class vector; // generic template VectorVectors are sequence containers representing arrays that can change in size. Just like arrays, vectors use contiguous storage locations for their elements, which means that their elements can also be accessed using offsets on regular pointers to its elements, and just as e..

  19. 2017.11.08 [STL] binary_search

    *[STL] binary_search - 이진 탐색 기능을 구현하고 있는 함수.- 헤더 파일 : - 템플릿default (1) template bool binary_search (ForwardIterator first, ForwardIterator last, const T& val); default (2) template bool binary_search (ForwardIterator first, ForwardIterator last, const T& val, Compare comp); - 자세한 내용 : http://www.cplusplus.com/reference/algorithm/binary_search/?kw=binary_search [예제 코드] 123456789101112131415161718..

  20. 2017.11.08 [BOJ2744][C++] 대소문자 바꾸기

    문제영어 소문자와 대문자로 이루어진 단어를 입력받은 뒤, 대문자는 소문자로, 소문자는 대문자로 바꾸어 출력하는 프로그램을 작성하시오. 입력첫째 줄에 영어 소문자와 대문자로만 이루어진 단어가 주어진다. 단어의 길이는 최대 100이다. 출력첫째 줄에 입력으로 주어진 단어에서 대문자는 소문자로, 소문자는 대문자로 바꾼 단어를 출력한다. 예제 입력 WrongAnswer 예제 출력 wRONGaNSWER 힌트 코드 123456789101112131415161718192021222324252627282930313233#include #include // strlen() #define N 101 using namespace std; int main(){ char input[N]; int len; cin >> input..

  21. 2017.11.07 [BOJ1237][C++] 정ㅋ벅ㅋ

    문제 이 문제를 푸는 자 우주를 정ㅋ벅ㅋ한다. 입력 우주를 정ㅋ벅ㅋ하는 자에겐 입력 따위 필요 없다. 출력 첫째 줄에 문제의 정답을 출력한다. 예제 입력 예제 출력 힌트 우주를 정ㅋ벅ㅋ할 사람에게는 예제 입력과 예제 출력이 필요하지 않다. 출처 · 문제를 만든 사람: baekjoon 알고리즘 분류 · 출력 코드 1 2 3 4 5 6 7 8 9 #include using namespace std; int main() { cout

  22. 2017.11.07 아스키 코드값 확인하기

    $ man ascii ASCII(7) Linux Programmer's Manual ASCII(7) NAME ascii - ASCII character set encoded in octal, decimal, and hexadecimal DESCRIPTION ASCII is the American Standard Code for Information Interchange. It is a 7-bit code. Many 8-bit codes (such as ISO 8859-1, the Linux default character set) contain ASCII as their lower half. The international counterpart of ASCII is known as ISO 646. The..

  23. 2017.11.07 현재 디렉토리에서 파일(디렉토리) 개수 구하기

    현재 디렉토리에서 파일(디렉토리) 개수 구하기 * 현재 디렉토리에서 파일 개수 구하기 $ ls -l | grep ^- | wc -l // 현재 디렉토리에서 파일 개수 구하기 22 * 현재 디렉토리에서 디렉토리 개수 구하기 $ ls -l | grep ^d | wc -l // 현재 디렉토리에서 디렉토리 개수 구하기 10 * 현재 디렉토리에서 파일과 디렉토리 개수 구하기 $ ls –F | grep –v ‘/$’ | wc –l // 현재 디렉토리에서 파일과 디렉토리 개수 구하기 32 * 현재 디렉토리에서 파일과 디렉토리 개수 구하기 $ ls –F | egrep –v ‘*/’ | wc -w // 현재 디렉토리에서 파일과 디렉토리 개수 구하기 32 * 현재 디렉토리에서 파일 개수 구하기 (하위 디렉토리 포함) $ ..

728x90


📖 Contents 📖