How To Install C Programming Software In Laptop | C Installation Tutorial For Beginners |Simplilearn

Simplilearn
22 Mar 202209:04

Summary

TLDRIn this tutorial, Hosanya from Simply Learn Stream guides viewers through installing C and setting up Visual Studio Code for C programming on Windows. The video begins with the installation of MinGW, a compiler, followed by adding its path to the system's environment variable. Next, Visual Studio Code is installed, and essential extensions like C/C++ and Code Runner are added. The tutorial concludes with a demonstration of creating a simple C program, compiling, and running it to print 'Hello World'. The video encourages viewers to subscribe and stay updated with Simply Learn's educational content.

Takeaways

  • 👨‍🏫 The video is a tutorial by Hosanya from the Simply Learn Stream, focusing on setting up C programming on Windows using Visual Studio Code.
  • 🔧 The first step is to install MinGW, which is necessary for compiling C programs.
  • 🌐 The audience is guided to download MinGW from a search engine by looking for 'MinGW-w64'.
  • 📂 After downloading, viewers are instructed to run the MinGW Installation Manager and install specific packages.
  • 🛠️ The tutorial includes setting the MinGW 'bin' directory path to the system's environment variable for easy access.
  • 💾 The next major installation is Visual Studio Code, which is downloaded and installed with step-by-step guidance.
  • 📱 The video mentions the importance of installing extensions like 'C/C++' and 'Code Runner' for compiling C programs in VS Code.
  • 🔧 The 'C/C++' extension is from Microsoft and is essential for C programming support within VS Code.
  • 🏃‍♂️ A simple 'Hello World' C program is demonstrated, showing how to write, save, and run a basic C program in VS Code.
  • 📢 The video concludes with a call to action for viewers to like, share, and subscribe to the Simply Learn YouTube channel for more educational content.

Q & A

  • What is the main topic of the video?

    -The main topic of the video is how to install C and set up Visual Studio Code for C programming on a Windows operating system.

  • Who is the presenter of the video?

    -The presenter of the video is Hosanya from the Simply Learn stream.

  • What is the first step in setting up C programming on Windows as described in the video?

    -The first step is to install MinGW, which is a compiler that compiles the program.

  • How does one download MinGW as per the video?

    -To download MinGW, one should open Google, search for 'MinGW compiler', click on the first link, and then click on the 'download' button.

  • What packages are recommended to be installed in MinGW for C programming?

    -The video suggests installing all the packages available in the MinGW Installation Manager by right-clicking on each package and marking them for installation.

  • How does one add the MinGW path to the system's environment variable on Windows?

    -After finding the MinGW 'bin' path, one should copy it and then add it to the system's environment variable by searching for 'environment variable', selecting 'Path' under system variables, and pasting the copied path in the 'New' field.

  • What is the next software to install after MinGW for C programming?

    -After installing MinGW, the next software to install is Visual Studio Code (VS Code).

  • What are the recommended extensions to install in VS Code for C programming?

    -The recommended extensions to install in VS Code for C programming are 'C/C++' and 'Code Runner'.

  • How does one create and run a simple C program in VS Code as shown in the video?

    -To create and run a simple C program, one should open VS Code, create a new file, save it with a '.c' extension, include the 'stdio.h' header file, write the main function with a 'hello world' print statement, and then click on the play button to run the program.

  • What is the output of the simple C program demonstrated in the video?

    -The output of the simple C program demonstrated in the video is 'hello world'.

  • What is the call to action at the end of the video?

    -The call to action at the end of the video is to like, share, and subscribe to the Simply Learn YouTube channel for more similar content.

Outlines

00:00

💻 Setting Up C Programming on Windows with Visual Studio Code

The paragraph introduces the video's purpose, which is to guide viewers on installing C programming tools and setting up Visual Studio Code on a Windows system. Hosanya from Simply Learn encourages viewers to subscribe and stay updated. The video emphasizes the versatility of Visual Studio Code for various development tasks. The installation process begins with downloading and setting up MinGW, a compiler for C programs. Viewers are directed to search for 'MinGW-w64' on Google, download it, and follow the installation steps. The script details the installation of necessary packages within the MinGW Installation Manager and adjusting the system's environment variables to include the MinGW path. The paragraph concludes with the installation of Visual Studio Code, guiding viewers to download it from the official site and run the installer with default settings.

05:02

🛠️ Installing Extensions and Writing a Simple C Program in VS Code

This paragraph continues the tutorial by explaining the installation of essential extensions in Visual Studio Code for C programming. It details the process of searching for and installing the 'C/C++' extension for compiling C programs and the 'Code Runner' extension for executing code. The tutorial then demonstrates creating a new C file, saving it with a '.c' extension, and writing a simple 'Hello World' program. The script guides viewers on how to run the program using the 'Play' button in VS Code and view the output. The video concludes with a call to action for viewers to like, share, and subscribe to the Simply Learn YouTube channel for more educational content.

Mindmap

Keywords

💡Visual Studio Code

Visual Studio Code, often abbreviated as VS Code, is a popular open-source code editor developed by Microsoft. It is designed for code editing and supports a wide array of programming languages through extensions. In the video, VS Code is used as the primary development tool for C programming, highlighting its versatility and the ease with which it can be set up for different programming tasks. The script guides viewers through the installation of VS Code on a Windows operating system.

💡C Programming

C Programming refers to writing software programs in the C language, which is a procedural, general-purpose programming language developed in the early 1970s. It is widely used for system programming, embedded systems, and as a base for other programming languages. The video's theme revolves around setting up an environment for C programming, indicating the importance of C in software development and the need for a suitable IDE like VS Code.

💡Mingw-w64

MinGW-w64, or Minimalist GNU for Windows, is a collection of tools that allows for the creation of native Windows applications using the GCC (GNU Compiler Collection). In the script, Mingw-w64 is installed to provide a compiler for C programs. The installation process of Mingw-w64 is detailed, emphasizing its role in compiling C code into executable programs on Windows.

💡Environment Variable

An environment variable is a dynamic-named value in a computer system that can affect the way running processes behave on a computer. In the video, the path to the Mingw-w64 'bin' directory is added to the system's environment variables. This step is crucial as it allows the system to recognize the compiler's location, enabling the execution of C programs from any location in the command line.

💡Extensions

In the context of an IDE like VS Code, extensions are additional features or plugins that enhance the functionality of the editor. The script mentions installing extensions such as 'C/C++' and 'Code Runner' to enable C programming and execution within VS Code. These extensions are vital for providing the necessary tools for code compilation and debugging within the editor.

💡GCC (GNU Compiler Collection)

The GNU Compiler Collection, commonly known as GCC, is a set of compilers for various programming languages, including C. It is part of the GNU Project and is a key component in the MinGW-w64 toolchain. The video script guides viewers to install GCC through Mingw-w64 to compile C programs, showcasing its importance in the development process.

💡IDE (Integrated Development Environment)

An Integrated Development Environment, or IDE, is a software application that provides comprehensive facilities to computer programmers for software development. VS Code is an example of an IDE, as highlighted in the video. It provides a user interface for editing code, compiling, and debugging, making it easier for developers to write and test their programs.

💡Subscription and Notification

The video script encourages viewers to subscribe to the channel and press the bell icon for updates. This is a common practice in online content creation to ensure that viewers receive notifications about new content. It is a way for content creators to build an engaged audience and maintain a consistent viewership.

💡Header File

In C programming, a header file is a file with a '.h' extension that contains C function declarations and macro definitions to be shared between several source files. The script includes an example where 'stdio.h' is used, which is a standard header file for input and output functions. This illustrates the use of header files in organizing and including necessary functionalities in C programs.

💡Main Function

The 'main' function is the entry point of execution in a C program. Every C program must have a 'main' function, which is where the program execution begins. In the script, the creation of a 'main' function is demonstrated as part of writing a simple C program. This is a fundamental concept in C programming, as it is the starting point for any C application.

💡Code Runner

Code Runner is an extension for VS Code that allows users to run code snippets or entire files with a single click. It supports multiple languages and is highlighted in the script as an essential tool for executing C programs within VS Code. This extension simplifies the process of compiling and running code, making it a valuable addition to the development environment.

Highlights

Introduction to the video by Hosanya from Simply Learn Stream.

Guide to install C and set up Visual Studio Code for C programming on Windows.

Call to action to subscribe to the Simply Learn channel and enable notifications.

Overview of Visual Studio Code as a popular development tool by Microsoft.

Explanation of the versatility of Visual Studio Code for various programming tasks.

Instructions to install MinGW for compiling C programs on Windows.

Step-by-step guide to downloading and installing MinGW Compiler.

Process of installing packages using MinGW Installation Manager.

Adding MinGW path to the system's environment variables for easy access.

Downloading and installing Visual Studio Code from the official website.

Accepting the license agreement during the Visual Studio Code installation.

Customizing the Visual Studio Code installation with options like creating a desktop icon.

Promotion of Simply Learn's Scale Up program for free learning resources.

Launching Visual Studio Code and installing necessary extensions for C programming.

Installation of C/C++ extension from Microsoft for C programming support.

Installation of Code Runner extension to compile and run C programs.

Creating a simple C program to print 'Hello World' in Visual Studio Code.

Demonstration of running a C program and viewing the output in Visual Studio Code.

Conclusion of the tutorial with a call to like, share, and subscribe to the Simply Learn YouTube channel.

Transcripts

play00:08

hey everyone welcome to this video i am

play00:11

hosanya from the simply learn stream

play00:13

and in this video let's see how to

play00:15

install c and setup visual studio code

play00:18

for c programming on windows operating

play00:20

system

play00:21

but before we begin if you haven't

play00:23

subscribed to our channel already make

play00:25

sure to hit the subscribe button and

play00:26

press the bell icon so you'll never miss

play00:28

any update from simply learn

play00:31

visual studio code is microsoft most

play00:34

popular development tool for windows and

play00:36

it is an open source code editor to run

play00:38

c programs and it is also used in game

play00:41

development web development and many

play00:43

more

play00:44

so without further ado let's get started

play00:46

with the installation process

play00:48

first let us install mingw which

play00:50

compiles the program to install

play00:53

let's open google and search for mingwc

play00:56

compiler

play01:03

and now click on the first link

play01:08

and here we see the download button so

play01:10

let's click on this

play01:14

as you can see your download will start

play01:16

shortly

play01:20

and once installed let's open and run it

play01:28

in mingw installation manager setup tool

play01:30

click on install

play01:34

and it's a default directory so let's

play01:36

click on continue

play01:40

here as you can see download is in

play01:42

progress so let's wait for it

play02:02

once done click on continue

play02:15

now in mnzw installation manager

play02:18

let's install all these packages

play02:20

to install right click on the package

play02:24

and mark for installation

play02:31

okay let's do the same right click on

play02:33

the package and mark for installation

play02:41

and once we are done with marking all

play02:44

these packages

play02:46

click on installation here

play02:48

and click on apply changes

play02:53

and now click on apply

play02:58

it will take some time to install so

play02:59

let's wait for it to get installed

play03:13

okay

play03:14

so once installed click on close

play03:20

let's go to the folder

play03:22

and select the mingw path

play03:29

okay

play03:30

so double click on mingw

play03:33

and now

play03:35

open bin

play03:36

and select this path

play03:39

ctrl c

play03:45

and now let's add it to the environment

play03:47

variable

play03:48

at bottom

play03:50

search for environment

play03:58

variable in system properties click on

play04:01

environment variables

play04:03

and in system variables select path and

play04:07

click on edit

play04:09

and now in edit environment variable

play04:12

click on new and paste the path here

play04:17

okay

play04:18

now click ok

play04:20

ok

play04:21

and ok

play04:23

now let's install vs code

play04:27

let's search for visual studio code

play04:31

let's click on the first link

play04:34

now click on download for windows

play04:37

and it's getting downloaded as you can

play04:39

see thanks for downloading vs code for

play04:41

windows

play04:47

let's now open

play04:52

and click on run

play05:01

so here

play05:03

select i accept the agreement and click

play05:05

next

play05:07

it's a default location so

play05:09

click on next

play05:13

click next

play05:15

and here

play05:16

select create a desktop icon and then

play05:19

click on next

play05:23

okay finally click on install

play05:30

it is getting installed and it will take

play05:32

some time to install

play05:43

so once installed click on the finish

play05:44

button

play05:46

if getting your learning started is half

play05:48

the battle what if you could do that for

play05:50

free visit scale up by simply learn

play05:53

click on the link in the description to

play05:55

know more

play05:58

so let's open visual studio code

play06:10

as you can see this is vs code

play06:12

and to compile the c program in vs code

play06:15

we need to install ideal extensions like

play06:17

c3 plus plus and code runner

play06:20

so

play06:22

on the left hand side let's click on the

play06:24

extension

play06:32

and here let's search for cc plus

play06:41

so this extension is from microsoft so

play06:44

click on install

play06:46

and it's installing

play06:50

okay

play06:51

now

play06:52

let's search for code runner

play07:00

okay now click on install

play07:08

okay

play07:10

so now let's do a simple c program

play07:13

click on new file

play07:17

now let's save the file

play07:27

okay let's name the file with dot c

play07:29

extension

play07:31

and click on save

play07:35

okay now

play07:37

let's include the header file

play07:39

hash include

play07:43

stdio.h

play07:46

now the main function

play07:50

void main

play07:51

and inside main function let's print

play07:54

hello world

play08:02

okay

play08:04

so let's run the program now to run the

play08:06

program

play08:08

click on the play button here

play08:13

as you can see the program is running

play08:29

so as you can see save the program

play08:32

and then

play08:34

the output is printed here hello world

play08:40

and with this we have reached the end of

play08:42

this video from simply learn make sure

play08:43

to like and share it until next time

play08:46

thank you stay safe and keep learning

play08:53

hi there if you like this video

play08:54

subscribe to the simply learn youtube

play08:56

channel and click here to watch similar

play08:59

videos turn it up and get certified

play09:01

click here

Rate This

5.0 / 5 (0 votes)

相关标签
C ProgrammingVisual Studio CodeWindows SetupCoding TutorialDevelopment ToolsMingw CompilerIDE ExtensionsCode RunnerProgramming GuideSoftware Installation
您是否需要英文摘要?