Back to notes
How can you check if Clang is installed on macOS?
Press to flip
Open the terminal and run `clang -v` to check if Clang is installed.
Describe the first steps to install VS Code on any system.
Download VS Code from the official website (code.visualstudio.com), install it, optionally create a desktop icon, launch VS Code and install extensions such as `C/C++` and `Code Runner`.
Why is C++ considered a 'fast language'?
C++ is considered a 'fast language' because it is used in performance-critical applications like advanced graphics applications (e.g., Adobe, video editing) and video games.
What package should be installed on Windows to get the necessary development tools for C++?
On Windows, the `MinGW-w64` package should be installed to get the necessary development tools for C++.
What should you do if Clang is not installed on macOS?
If Clang is not installed on macOS, run the command `xcode-select --install` in the terminal.
Which command do you use to update MSYS2 on Windows?
Use the command `pacman -Syu` to update MSYS2 on Windows.
Describe the significance of C++ being a middle-level language.
C++ being a middle-level language means it incorporates elements of both high-level languages (e.g., Python, Java) and low-level hardware instructions, offering a balance of abstraction and control over system resources.
How can you verify if the g++ compiler is correctly installed on a Windows system?
Open the Command Prompt and run `g++ --version` to verify if the g++ compiler is correctly installed.
Explain why learning and mastering C++ can be beneficial despite its learning curve.
Learning and mastering C++ can be beneficial due to its performance advantages, making it valuable for applications where speed and resource management are critical, such as in gaming and high-performance computing.
What extensions are recommended for VS Code when setting up a C++ development environment?
The recommended extensions for VS Code when setting up a C++ development environment are `C/C++` and `Code Runner`.
After installing the MinGW-w64 toolchain, what additional step must be performed on Windows?
After installing the MinGW-w64 toolchain, the `bin` folder must be added to the Windows PATH environment variable.
How do you verify if GCC is installed on a Linux system?
Open the terminal and run `gcc -v` to check if GCC is installed.
What command is used to install essential development tools in MSYS2 for C++ on Windows?
The command `pacman -S --needed base-devel mingw-w64-x86_64-toolchain` installs essential development tools in MSYS2 for C++ on Windows.
List the tools needed to start programming in C++.
1. Text editor/IDE like VS Code or Code Blocks. 2. Compiler like GCC for Windows/Linux or Clang for macOS.
What command is used to install GCC on a Linux system if it's not already installed?
Use the command `sudo apt-get install build-essential` to install GCC on a Linux system.
Previous
Next