RAD 6월 28일, 2022에 포스트됨 공유하기 6월 28일, 2022에 포스트됨 원문: https://blogs.embarcadero.com/this-is-how-to-create-and-run-a-program-in-the-c-ide/ 작성자: Yılmaz Yörü (2022.6) C++ is one of the most powerful programming languages as well as being one of the world’s most popular. C++ Builder is a powerful C++ IDE which is suitable for both beginners and professionals alike. C++ Builder has free C++ Builder Community Edition and C++ Builder Professional / Architect / Enterprise Versions. C++은 세계에서 가장 인기있고, 강력한 프로그래밍 언어 중 하나이다. C++빌더는 강력한 C++ IDE로 프로그래밍을 시작하는 초보자와 전문 개발자 모두에게 적합한 도구이다. C++빌더에는 무료 에디션인 C++빌더 커뮤니티를 비롯해 기업용 에디션인 C++빌더 프로페셔널 / 아키텍트 / 엔터프라이즈가 있다. Using a fast and reliable C++ IDE is very important for beginners and professionals alike whether they are developing C++ apps for Windows or for any of the other operating systems and targets. C++ is subjectively the World’s most powerful programming language and consistently one of the world’s top four most popular programming languages. Thanks to it’s huge range of ready-made variables, functions, methods, namespaces and libraries it’s the do-everything toolkit which can be used for everything from regular simple apps to low-level operating system drivers, IoT hardware driving and everything in between. When a user wants to develop modern C++ applications, she or he will benefit from investing a very small amount of time in becoming familiar with the functions, features and shortcuts of a professional IDE. A small effort in that area pays dividends in productivity In this post we explain basic of C++ Builder as a guide for beginners. 빠르고 안정적인 C++ IDE를 사용하는 것은 초보자이든 전문 개발자이든 다른 여러 운영체제나 윈도우용 C++ 앱을 개발하려는 사람 누구에게든 매우 중요한 부분이다. C++은 주관적으로 세계적으로 가장 강력한 프로그래밍 언어이자, 가장 인기있는 4대 프로그래밍 언어의 자리를 지켜오고 있다. 이미 완성되어 있는 광범위한 변수, 기능, 메소드, 네임스페이스, 라이브러리 덕분에 간단한 앱부터 로우레벨의 운영 체제 드라이브, IoT 하드웨어 구동 등 모든 분야에 사용할 수 있는 툴킷이다. 사용자가 최신식 C++ 애플리케이션을 개발하고자 한다면, 전문 IDE가 제공하는 기능, 특징, 단축키 등 활용에 아주 적은 시간만을 투자해서 이점을 확보할 수 있을 것이다. 조금만 노력하면 생산성을 향상시킬 수 있다. 이번 글은 초보자를 위한 가이드로 C++빌더의 기본을 설명하고자 한다. As a C++ compiler, the Best Professional C++ IDE and Code Editor to Implement C++ Programs for Windows, iOS and Android is the latest version of RAD Studio or C++ Builder, C++ 프로그램을 윈도우, iOS, 안드로이드용으로 구현하고자 한다면 C++컴파일러에서 최고의 전문 C++ IDE이자 코드 에디터는 단연 RAD스튜디오, C++빌더 최신 버전이다. 목차 RAD스튜디오 C++ IDE 또는 C++빌더로 C++ 프로그램을 실행하는 방법 C++빌더 최신 버전 기능 한 눈에 보기 C++빌더 최신 버전 무료 평가판 다운로드 C++ IDE의 여러 기능 새로운 C++ 프로젝트를 생성하는 방법 GUI로 C++ 프로그램을 실행하는 방법 RAD스튜디오 C++ IDE 또는 C++빌더로 C++ 프로그램을 실행하는 방법 C++ Builder is the easiest and fastest C and C++ IDE for building simple or professional applications on the Windows, macOS, iOS & Android operating systems. It is also easy for beginners to learn with its wide range of samples, tutorials, help files, and LSP support for code. C++ Builder comes with Rapid Application Development Studio, also known as RAD Studio, and C++ Builder is one of the most professional IDE’s that work under RAD Studio. It is the oldest IDE (it began as Borland TurboC in 1990 and was later renamed Borland C++ Builder). Under the Embarcadero brand, multiple new versions have been release, year upon year, along with great new features, updates, and support to ensure that your apps can stay current. RAD Studio’s C++ Builder version comes with the award-winning VCL framework for high-performance native Windows apps and the powerful FireMonkey (FMX) framework for cross-platform UIs. There is a free C++ Builder Community Edition for students, beginners, and startups. C++빌더는 윈도우, macOS, iOS&안드로이드 운영 체제 용의 간단한 애플리케이션부터 전문적인 프로그램까지 빌드할 수 있는 가장 쉽고 가장 신속한 C/C++ IDE이다. 초보자들이 쉽게 배울 수 있도록 다양한 샘플, 튜토리얼, 도움말 파일, 코드 LSP 지원을 제공하고 있다. C++빌더는 RAD스튜디오로 잘 알려져있는 신속한 애플리케이션 개발 스튜디오와 함께 제공되는데, RAD스튜디오에서 작동하는 가장 전문적인 IDE 중 하나이다. 그리고 가장 오래된 IDE이기도 하다 - 1990년 볼랜드 터보C(Borland TurboC)로 처음 선보였으며 후에 볼랜드 C++빌더(Borland C++Builder)로 이름을 변경하였다. - 엠바카데로 브랜드로, 새 버전을 매년 선보이고 있다. 여러분의 앱을 최신 상태로 유지할 수 있도록 훌륭한 새 기능, 업데이트를 제공하고 있다. RAD스튜디오의 C++빌더는 다양한 분야에서 수상을 거머쥔 고성능 네이티브 윈도우 앱 개발을 지원하는 VCL 프레임워크와 크로스-플랫폼 UI 구현이 가능한 강력한 파이어몽키(FMX) 프레임워크를 모두 제공한다. 무료 에디션인 C++빌더 커뮤니티 에디션은 학생, 초보자, 스타트업을 위한 제품이다 (단, 사용 요건이 까다롭기 때문에, 반드시 확인 후 사용하길바란다). 최신 RAD스튜디오, C++빌더 웰컴 화면 초보자를 위한 C++빌더와 RAD스튜디오 자세한 내용 RAD스튜디오 공식 위키: http://docwiki.embarcadero.com/RADStudio/Sydney/en/Getting_Started_with_RAD_Studio 시작하는 사람들을 위한 자료: https://www.devgear.co.kr/archives/products/free_resources C++빌더 커뮤니티 에디션: https://devgear.co.kr/archives/products/cbuilder_ce C++빌더 상업용 에디션 (프로페셔널, 아키텍트, 엔터프라이즈): https://devgear.co.kr/archives/products/cbuilder C++빌더 최신 버전 기능 한 눈에 보기 C++빌더 최신 버전 무료 평가판 다운로드 C++ IDE의 여러 기능 C++ Builder IDE has mainly 5 Parts, the Code Editor Window and Form Designer, Projects Window, Palette Window, Structure Window, Object Inspector Window. You can find more , less commonly used windows from the main IDE menu as well as the right-click context menus. All the basic sections can be summarized in this IDE picture; C++빌더 IDE는 기본적으로 5개의 파트로 구성되어 있다. 코드 에디터, 폼 디자이너, 프로젝트 창, 팔레트 창, 스트럭처 창, 오브젝트 인스펙터 창. 주 IDE 메뉴에서 많이 사용되지 않는 화면 뿐만 아니라 마우스 오른쪽 버튼을 클릭해서 부가적인 메뉴들도 확인할 수 있다. 모든 기본 섹션은 아래 IDE 이미지에서 파악할 수 있다. 각 파트에 대한 설명은 다음과 같다. 1.The Code Editor and Form Designer: The Code Editor and the Form Designer occupy the center pane of the IDE window. The Code Editor is a full-featured, customizable UTF8 editor that provides syntax highlighting, multiple undo capability and context-sensitive help for language elements. You can switch between them by using F12 or from lower tabs in IDE. As you design the user interface for your application, RAD Studio generates the underlying code. When you modify object properties, your changes are automatically reflected in the source files. 1. 코드 에디터 및 폼 디자이너: 코드 에디터와 폼 디자이너는 IDE 창의 중앙에 자리하고 있다. 코드 에디터는 구문 강조, 다중 실행 취소, 언어 요소에 대한 상황별 도움말을 제공하는 완벽한 기능을 갖춘 커스터마이징도 할 수 있는 UTF8 에디터이다. F12를 사용하거나 IDE 하단 탭을 이용해서 변경할 수도 있다. 애플리케이션 UI를 디자인하면, RAD스튜디오는 기본 코드를 생성한다. 오브젝트 속성을 변경하면, 소스 파일에 변경된 내용이 자동 반영된다. 2. The Project Window : The Project Window displays and organizes the contents of your current project group and any project it contains. You can perform many important project management tasks, such as adding, removing, and compiling files. The default location of the Projects window is the upper right corner of the IDE, but the window is dockable, as are many windows in the IDE 2. 프로젝트 창: 현재 프로젝트 그룹과 해당 그룹에 포함되어 있는 프로젝트 내용이 표시되고 구성할 수도 있는 창이다. 파일 추가, 제거, 컴파일 등 여러 중요한 프로젝트 관리 업무를 수행할 수 있다. 프로젝트 창의 기본 위치는 IDE 오른쪽 상단 모서리이지만, 다른 IDE 창과 같이 도킹할 수 있다. 3. The Tool Palette Window: The Tools Palette Window has UI elements, components that can be used in application UI design, it assists with a new project, adds components to a form, or adds code snippets to the Code Editor. 3. 툴 팔레트 창: 애플리케이션 UI 설계에 사용 가능한 UI 요소, 컴포넌트들이 있으며 새로운 프로젝트 지원, 폼에 컴포넌트 추가, 코드 에디터에 코드 스니핏 추가 등의 작업을 할 수 있다. 4. The Structure Window: The Structure View Window displays a tree diagram that shows the hierarchy of elements in the active window (that is, the Code Editor or the Form Designer) 4. 스트럭처 창: 스트럭처 뷰 창에는 활성화된 창 (코드 에디터, 폼 디자이너 등)에 있는 요소들의 계층을 보여주는 트리 형식의 다이어그램이 표시된다. 5. The Object Inspector Window: The Object Inspector is used to examine and edit the properties and events for the currently selected object or objects. Every design object (Components, UI Elements) can be edited by clicking on it then setting its properties and events in the Object Inspector Window. 5. 오브젝트 인스펙터 창: 현재 선택한 오브젝트(개체)의 속성 및 이벤트를 확인하고 편집하기 위해 사용하는 창이다. 모든 디자인 오브젝트 (컴포넌트, UI 요소)는 각 개체를 클릭해서 수정할 수 있고, 오브젝트 인스펙터 창에서 속성과 이벤트를 설정할 수 있다. Running C++ Codes :You can Run your code by pressing F9 or Run button on the top bar. You can use other Run Without Debugging. There is a Stop and Pause button if your code is in loop. On the run time you can use debug, break points, watch variables and many other runtime features. C++ 코드 실행: F9 버튼 또는 상단 바의 Run 버튼을 클릭해서 코드를 실행할 수 있다. 디버깅 없이 실행(Run Without Debugging)도 가능하다. Stop과 Pause 버튼이 있어 코드가 루프상태인 경우 활용하면 된다. debug, break points, watch variables 등등 다양한 런타임 기능들을 런타임 시 활용할 수 있다. Switching between the Design and Code View: You can press F12 to switch between the Code Editor and Form Designer. The latest C++ Builder also allows you to use both of them together in the same screen. You can switch code, header and design view from the bottom top bars. 디자인 뷰와 코드 뷰 변환: F12를 눌러 코드 에디터와 폼 디자이너 화면을 왔다갔다 변환할 수 있다. 최신 C++빌더에서는 동시에 한 화면에 뜨도록 설정할 수도 있다. 코드, 헤더, 디자인 뷰를 맨 아래 바로 변환할 수도 있다. Switching Between the Code Files: You can use tabs on the top to switch between .c or .cpp files and .h headers. 코드 파일 간 전환: 상단에 있는 탭을 사용해서 .c 또는 .cpp 파일과 .h 헤더를 전환할 수 있다. 새로운 C++ 프로젝트를 생성하는 방법 If you are asking How do I compile a cpp program? What is compiling in cpp? How do I compile cpp in terminal? Does C++ need to be compiled? How do I run a CPP program? first you need to create a new C++ program. cpp 프로그램 컴파일 방법이나 cpp로 무엇을 컴파일하는지, 터미널에서 cpp를 어떻게 컴파일하는지, C++을 컴파일해야 하는지, CPP 프로그램을 어떻게 실행해야 하는지 등이 궁금하다면, 가장 먼저 새로운 C++ 프로그램을 만들어야 한다. Normally you can create a new C source code or C++ source code by an editor and you should save all to your working directory path. When you compile a C++ file you create a link output. You can also create executable files by using compiler binary in a command prompt in command line with link option which means you run linker. This created executable file is a EXE file which means it runs machine code in your computer. Many languages has compiler options to optimize your codes to a perfect executable output. Note that generally C++ filenames has .cpp extension, C files has .c extension and header files has .hpp or .h extensions. Generally main include files are in include path of the compiler. To run a program just type the executable output in command line or double click on it in your operating system. 일반적으로 새로운 C 소스코드나 C++ 소스코드는 에디터로 만들 수 있고, 작업 디렉토리 경로에 저장해야 한다. C++ 파일을 컴파일할 때 링크 출력값이 생성된다. 그리고 linker를 실행하는 것을 의미하는 링크 옵션으로 커맨드 라인의 커맨드 프롬프트에서 컴파일러 바이너리를 사용해서 실행 파일을 생성한다. 이렇게 생성된 실행 파일은 EXE 파일로, 여러분의 컴퓨터에 있는 기계어를 실행한다는 의미이다. 많은 언어에는 컴파일러 옵션이 있으며, 이 옵션이 완벽하게 실행 가능한 출력값으로 코드를 최적화해준다. 기억해야 할 점은, 일반적으로 C++ 파일명에는 .cpp 확장자가 있으며, C 파일에는 .c 확장자자, 헤더 파일에는 .hpp 또는 .h 확장자가 있다. 일반적으로 메인 include 파일은 컴파일러의 include 경ㅇ로에 있다. 프로그램을 실행하려면, 커맨드 라인에서 실행 가능한 출력값을 입력하거나 운영체제에서 더블 클릭하면 된다. Compiling Cpp files results with creating executable applications from these cpp file. You can use Embarcadero C++ Builder compilers (bcc32*.exe) , Dev-C++ compiler, gnu compiler (aka gcc compiler), visual studio code or other c and C++ compilers. Cpp 파일을 컴파일하면 cpp 파일에서 실행 가능한 애플리케이션을 생성할 수 있다. 엠바카데로 C++빌더 컴파일러 (bcc32*.exe), Dev-C++ 컴파일러, gnu 컴파일러 (gcc 컴파일러로 알려져있음), 비주얼 스튜디오 코드 및 기타 C, C++ 컴파일러를 사용할 수 있다. C++ Builder greets you with a Welcome Screen. You can create a new project by using File->New menu on the top. By using this menu. You can create a new MultiDevice Application in C++ Builder with FireMonkey framework or a new Windows VCL Application in C++ Builder with VCL framework or you can create a Console Application in C++. There are more options to develop more professional static, dynamic libraries. C++빌더가 Welcome 화면으로 사용자를 맞이한다. 상단의 File->New 메뉴를 통해 새로운 프로젝트를 생성할 수 있다. 해당 메뉴를 통해 C++빌더에서 파이어몽키 프레임워크을 활용하는 새로운 MultiDevice 애플리케이션을 만들 수도 있고, VCL 프레임워크를 활용하는 윈도우 용 VCL 애플리케이션을 만들 수도 있다. C++에서 콘솔 애플리케이션(Console Application)을 만들 수도 있다. 더욱 전문적인 정적, 동적 라이브러리를 개발할 수 있는 옵션들도 많다. RAD스튜디오, C++빌더의 다크 모드 When you create a project this will create a Project source code file and a Unit which has a visual window. Your project will have .bpr, .cpp, PCH.h files, this project also includes two more .cpp and .h units. You can start designing your app with this ready-made unit as launching point, adding your own code by modifying these Unit files and its .h header. You can add more Units with new .cpp and .h files in your project.. 프로젝트를 생성하면, 시각화된 화면을 갖춘 프로젝트 소스 코드 파일과 유닛을 만들게 된다. 프로젝트에는 .bpr, cpp, PCH.h 파일이 있을텐데, 이 외에도 .cpp과 .h 유닛이 있을 것이다. 이미 만들어진 앱 유닛을 사용해서 앱 설계를 시작할 수 있다. 유닛 파일과 .h 헤더를 수정해서 나만의 코드를 추가할 수도 있다. 프로젝트에서 새로운 .cpp와 .h 파일로 더 많은 유닛(Unit)을 추가할 수도 있다. GUI로 C++ 프로그램을 실행하는 방법 C++ Builder, RAD Studio is the easiest and fastest C and C++ IDE for building simple or professional applications. One of the great feature is its Designer which is full of a rich toolset of many new features. You can easily add new visual UI elements which are called as Components. Just choose a component, i.e Button (TButton), Edit (TEdit), Memo (TMemo), Label (TLabel), etc. from the Palette Windows you want to use and drag on to your form design. When you click on a component you can drag them to a new position or you can change its width height and corner positions by pressing blue squares around it. When you do this it will guide you with lines to show make it aligned with other component edges. C++빌더, RAD스튜디오는 가장 쉽고 가장 빠른 C, C++ IDE로 간단한 애플리케이션부터 전문적인 프로그램까지 개발할 수 있다. 가장 멋진 기능 중 하나는 디자이너(Designer)로, 다양한 새로운 기능들을 갖춘 풍부한 툴셋이다. 컴포넌트(Component)라고 부르는 시각 UI 요소들을 매우 쉽게 추가할 수 있다. 컴포넌트를 선택만 하면 된다. 예를 들어 버튼 (TButton), 에디트 (TEdit), 메모 (TMemo), 레이블 (TLabel) 등등이 있는데 팔레트 창(Palette Windows)에서 폼으로 원하는 컴포넌트를 드래그해와서 올리기만 하면 된다. 컴포넌트를 클릭해서 새로운 위치로 드래그를 하거나, 테두리를 클릭해서 높이/너비를 조정할 수도 있다. 이 작업을 할 때 다른 컴포넌트 테두리와 정렬되는 모습을 보조선을 통해서 보여준다. Every component may have different properties or events. You can check them and you can change their properties manually by clicking on them and using Object Inspector. Some components generate their basic events in the code editor automatically. For example you can double click the Button to write your “button click” code (that is executed when the user clicks on the button) inside it. This concept of “code behind” is key to how C++ Builder works and is central to how easy it is to write really great, visually stunning C++ programs with it. 모든 컴포넌트에는 각각 설정할 수 있는 속성(Property)이나 이벤트(Event)가 있다. 버튼을 클릭하거나 오브젝트 인스펙터(Object Inspector)를 사용해서 직접 속성을 변경할 수 있다. 일부 컴포넌트에는 코드 에디터에 자동으로 기본 이벤트가 설정되어 있기도 한다. 예를 들어 버튼(Button)을 더블 클릭하면 "button click" 코드 (사용자가 버튼을 클릭할 때 실행되는 코드)를 작성할 수 있도록 화면이 열린다. "code behind" 개념은 C++빌더 작동 방법의 핵심이자, 정말 멋지고 시각적으로도 훌륭한 C++ 프로그램을 쉽게 작성할 수 있도록 해주는 가장 중점에 있는 개념이다. If you are new to programming or even if you coming to C++ from another programming language, sometimes it is hard to understand how to write C_++ code, how to design the screens and how to compile and run your apps. In this post we will explain how to compile C++ code in Windows to produce Modern C++ applications in Windows 프로그래밍이 처음이거나 다른 프로그래밍 언어를 사용하다가 C++로 넘어온 경우라면, 한 번씩 C++ 코드 작성 방법이나 화면 디자인, 앱 컴파일이나 실행을 어떻게 해야할 지 이해하기 어려웠을 수 있다. 아래 링크된 글을 통해서 윈도우에서 C++ 코드를 컴파일하는 방법을 확인할 수 있고, 이를 통해 윈도우용 최신식 C++ 애플리케이션을 개발할 수 있다. If you have trouble, here is more detailed post that explains how you can compile C++ apps on Windows, 잘 되지 않는다면, 윈도우에서 C++앱 컴파일하는 방법을 자세히 설명한 아래의 글들을 참고해보길 바란다. C++ 예제들, 예를 들면 'Hello World' 예제를 확인할 수 있다. 인용하기 이 댓글 링크 다른 사이트에 공유하기 더 많은 공유 선택 사항
Recommended Posts
이 토의에 참여하세요
지금 바로 의견을 남길 수 있습니다. 그리고 나서 가입해도 됩니다. 이미 회원이라면, 지금 로그인하고 본인 계정으로 의견을 남기세요.