'::' Please tell me what this sign means
'::' Please tell me what this sign means
Hello, I am a Korean student learning C++
While using C++, I have a few questions and I have a question.
I think M/S's answer will be of great help to me, so please let me know in detail.
- '::' I want to know what this sign means
- Please tell me why the '::' is the glyph and why it wasn't the other glyph
For example, please tell me if you have used a pattern like '##' or a pattern like ' ` ' somewhere else. - C++ developers tell us why they made object-oriented languages
Thank you for reading this article during your busy time.
7 answers
Sort by: Most helpful
-
Castorix31 84,546 Reputation points
2021-10-30T16:36:25.073+00:00 -
Minxin Yu 11,506 Reputation points Microsoft Vendor
2021-11-01T07:15:45.413+00:00 Hi, @yunjunhee
Welcome to Microsoft Q&A!C++ developers tell us why they made object-oriented languages
I am sorry that your question is very general and we can't provide precise answers.
The main aim of Object-oriented programming is to bind together the data and the functions that operate on them so that no other part of the code can access this data except that function.
Object-oriented programming makes development and maintenance easier. It divides big problems into small problems, and then regroups these small problems (by calling functions) to make it easier to solve the problem.Best regards,
Minxin Yu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. -
Petrus 【KIM】 456 Reputation points
2021-11-18T06:26:17.69+00:00 안녕하세요. 한국어로 답을 해보겠습니다.
- :: 이것의 의미는 C++ 클래스에서 범위를 지정하기 위해 사용합니다. 예를 들어, CSample 클래스에 있는 전역 함수' func1()'에 접근하려 한다면, 'CSample::func1()' 처럼 사용할 수 있습니다.
특히, MFC 프로그램에서 Win32 함수를 호출할 때에도, 명확한 구분을 위해서 사용되곤 합니다. MFC 코드에서 MessageBox 함수를 호출하는 것과 ::MessageBox 함수를 호출하는 것은 다를 것입니다. - 이것과 관련해서는 아래의 ISO 표준 문서를 확인 바랍니다.
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3690.pdf 5.1.1 - 프로그램 언어의 변화에 대한 역사를 공부하면 쉽게 이해할 수 있을 것입니다.
왜 C++ 이라는 이름의 언어가 만들어지게 되었는지, 또, 그 이전의 언어에 어떤 문제가 있었는지...
https://namu.wiki/w/%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%98%EB%B0%8D%20%EC%96%B8%EC%96%B4
- :: 이것의 의미는 C++ 클래스에서 범위를 지정하기 위해 사용합니다. 예를 들어, CSample 클래스에 있는 전역 함수' func1()'에 접근하려 한다면, 'CSample::func1()' 처럼 사용할 수 있습니다.
-
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more
-
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more