코딩Coding/C++__C언어
-
Array data structure코딩Coding/C++__C언어 2020. 9. 21. 19:45
en.wikipedia.org/wiki/Array_data_structure Array data structure - Wikipedia Type of data structure In computer science, an array data structure, or simply an array, is a data structure consisting of a collection of elements (values or variables), each identified by at least one array index or key. An array is stored such that the en.wikipedia.org
-
[C++] #define 보다는 const , enum, inline을 쓰자코딩Coding/C++__C언어 2020. 9. 20. 19:33
https://blog.koriel.kr/define-bodaneun-const-enum-inlineeul-sseuja/amp/#define 보다는 const, enum, inline을 쓰자C++ 프로그래밍을 할 때 우리는 종종 선행 처리기(Pre-processor)를 사용합니다. 보통 프로그램 전체에 걸쳐 사용되는 상수가 필요할 경우, 아래의 형식으로 사용되죠. #define PI 3.14159265359 위의 전처리blog.koriel.kr
-
C++의 asterisk(*)포인터 / & ampersand(C++의 꽃은 배열, 함수, 포인터)코딩Coding/C++__C언어 2020. 9. 19. 19:50
* asterisk(아스테리스크,애스터리스크) 가 붙은 변수는 실제 값이 아니라 주소를 저장한다는 의미 & ampersand(앰퍼샌드)는 변수의 주소를 불러오는 의미. 주소를 저장하도록 * 가 붙은 변수를 선언하고, 그 변수에 주소를 불러오는 &를 이용해 number1의 주소를 가져와 대입하는 것입니다. ex) int number1 = 40; int *pointer1 = &number1; engineer135.tistory.com/102 C/C++ 의 asterisk (*) The asterisk (*) is used in declaring a pointer for the simple purpose of indicating that it is a pointer (The asterisk is part of..